Windows without title bar but with border
I have exactly the same problem and I know that it is solvable (QDockWidget does it successfully).
I haven’t found an easy solution in the Qt Source. Does anybody know how QDockWidget does it?
Moderators note:
This topic was split off from this [developer.qt.nokia.com] topic, because the other topic was on Mobile and Embedded while this one is on the (linux) desktop. While searching the forums for similar information is really good practice (thanks!), it is not always a good idea to revive an old topic. Instead, linking to it may be a better alternative. Andre
6 replies
Thank you for your reply. I am mainly interested in linux desktops.
(I know this question is in mobile, but I didn’t want to repost)
If i create a QDockWidget without a parent, it is a top-level widget and still it does not have a system title bar. The flags it has are:
So how does it get no title bar even though it has the Qt::WindowTitleHint flag set?
[EDIT: code formatting, please wrap in @-tags, Volker]
Thank you for your reply. I am mainly interested in linux desktops. (I know this question is in mobile, but I didn’t want to repost)
In that case, let me just move it for you.
-In the future, you can just use the “report” link next to your post and request an admin moves it to the correct subforum. – update:
I decided to split off the topic, because the other part [developer.qt.nokia.com] was on mobile & embedded (moved that part back there). Thanks for searching the forum before just posting your question, but sometimes it is better to just link to it instead of reviving an old topic.
You must log in to post a reply. Not a member yet? Register here!


