Hello!
I need to show the maximize (and minimize) buttons in the title bar of a QDialog. I made this:
dialog->setWindowFlags(dialog->windowFlags() | Qt::WindowMinMaxButtonsHint);
dialog->setWindowFlags(dialog->windowFlags() | Qt::WindowMinMaxButtonsHint);
To copy to clipboard, switch view to plain text mode
which I call for the QDialog* dialog.
Under KDE and Windows, the min max buttons are shown and working. Under GNOME, the buttons are not shown (I only see the close button).
How can I solve this? Is it safe to do:
dialog->setWindowFlags(Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint);
dialog->setWindowFlags(Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint);
To copy to clipboard, switch view to plain text mode
(this works, practically, under GNOME)
so that the flags for this dialog will not contain Qt:ialog anymore, but will contain Qt::Window?
I tried also setting Qt::CustomizeWindowHint under GNOME, but it does not work.
I also found this link to a similar problem: http://www.archivum.info/qt-interest...-Metacity.html
Thank you!
Bookmarks