0
Two dialog of qt and parent child relationship | border issue
Hi I had similar question asked here. It was solved as per my understanding, but it seems I missed an important detail. When parent child relation is set and made child dialog move independently, I could see child dialog has only right and bottom border, not other two borders. How to get rid off two shown borders? https://www.sololearn.com/discuss/3311136/?ref=app
2 Antworten
+ 2
To remove unwanted borders from a child dialog in Qt, especially when using parent-child relationships, you can try customizing the window flags. For your case, try setting the window flags like this:
childDialog->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
This removes all the borders. If you want to keep specific ones or have better control, you can use Qt::CustomizeWindowHint along with other flags.
Also, ensure that the childDialog isn’t using any stylesheet that could override border settings.
Let me know if you need help with an example implementation.
0
Windows flag helped me a lot to get rid off the border. But it then makes it impossible to move the window.
How to achieve this