I want to delete the title bar of QDockWidget completely. Is there any method to do this except the stylesheet?
dockWidget->setTitleBarWidget(new QWidget());
To disable window decorations (title) you have to set several flags in widget constructor, like this:
drawer::drawer(QWidget *parent) :
QDockWidget(parent, Qt::Window | Qt::WindowStaysOnTopHint |
Qt::X11BypassWindowManagerHint | Qt::FramelessWindowHint) /**/
{}
This disabled title and removes window from taskbar. For more information use Window Flags
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With