Win 7, Qt 5.3
I use a QDockWidget
with my application. Works as intended.
Now I hide the title bar by setting setTitleBarWidget(new QWidget(this))
to a default constructed widget. This is the standard way according to Qt documentation. Also works, title bar is gone.
In order to undock my widget as window, I use myDockWidget->setFloating(true)
(in my own slot). But now, when the widget is undocked, the floating window has no longer borders (hence cannot be moved).
If I comment out setTitleBarWidget
, also myDockWidget->setFloating(true)
works. So the original title bar seems to incorporate some logic. However, by looking at the source code I could not find anything special.
Any hint what I can do to overcome the issue?