How can we remove the window menu in the title bar of a QDialog?
How can we remove the window menu in the title bar of a QDialog?
take a look at QTDIR/examples/widgets/windowflags.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
in your dialog constuctor use this flag ..
MainWindow::MainWindow(QWidget *parent)
: QDialog(parent, Qt::FramelessWindowHint)
This will remove the title bar from the dialog. I need the title bar in dialog. But the window menu is not needed.
I've got same problem. I too want to disable the menu display when right clicked on the title bar of a dialog, If anybody has got any solution please post it.
Thanks
Same problem here
I was able to install an event filter for right button behavior in the qdialog but it doesn't work when the right button is pressed over the title bar of qdialog..
Can someone help ? Thanks.
Bookmarks