Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Windows without title bar but with border
holy last edited by
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?
This topic was split off from "this":http://developer.qt.nokia.com/forums/viewthread/8140/ 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
AFAIK QDockWidget is not a top levbel widget, which means, everything is done by hand :-)
For top level widgets, this is done by the windowinmg system (in the case of the OP, QWS).
holy last edited by
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:
(Qt::Window | Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint | Qt::WindowCloseButtonHint)
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]
I would propose, you look at the source code.
perhaps (as it it typically not a top level widget) perhaps, these flags have a special handling in this class?
zentel. last edited by
I want to know whether I can do that in Qt quick project?
if you have a main app and a QDeclarativeView, you can do stuff in C++.
andre last edited by
[quote author="holy" date="1321636507"]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)[/quote]
-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. -
I decided to split off the topic, because the " other part":http://developer.qt.nokia.com/forums/viewthread/8140/ 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.