I have created a QDialog
based app using Qt Creator and all is well other than the dialog has no minimize button. How can I add one? Is there a property in the designer that I can set?
views:
789answers:
2
+2
A:
Use the QDialog constructor's Qt::WindowFlags for minimize.
Qt::WindowMinimizeButtonHint
Brian R. Bondy
2009-07-03 21:43:46
+5
A:
You can't add the minimize button yourself as it is handled by the window manager. You can tell the window manager how your dialog should be handled using Window Manager hints. This is done using the windowFlags property of your widget. There's also an example demonstrating this.
bluebrother
2009-07-03 21:45:49
Thank you! I trawled through the samples but missed that one.
Rob
2009-07-03 21:49:57