Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.4
-
OS X
-
-
595deca5c909d99a8cd157b9fb6c82c64b1db1f5
Description
OS X, modal dialog windows should not display the 'traffic light' close, maximize and minimize buttons in the title bar. However, modal QDialog windows do display these buttons.
The problem / bug is that when a modal QDialog window is created, the close, maximize and minimize buttons are present.
Result can be seen by creating a standard dialog:
QDialog dialogWindow(this);
Workaround for this can be done by creating dialog with flags described below:
QDialog dialogWindow( this, Qt::FramelessWindowHint | Qt::CustomizeWindowHint | Qt::WindowTitleHint );
But clearly this is not ideal, as this statement produces a non-standard dialog under Windows. #ifdefs are required for every dialog for Windows and OS X.
Apple - Human Interface Guideline can be found from the URL: http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AppleHIGuidelines/Windows/Windows.html#//apple_ref/doc/uid/20000961-TP9