PDA

View Full Version : QMessageBox - no dialog title on Mac OS?



will49
4th October 2007, 20:42
I'm using QMessageBox with Qt 4.3.1 on Mac OS 10.4. I noticed that the dialogs created QMessageBox have a title bar, but the dialog title text is not set - it's just blank. The same happens with the "Standard Dialogs" Qt demo app.

Also the QErrorMessage window always shows behind the app's window so it's hidden.

Are these bugs, features.....?

Jon
8th October 2007, 14:07
I believe the no title on Mac is intentional behaviour.

The documentation of QMessageBox::setTitle():
On Mac OS X, the window title is ignored (as required by the Mac OS X Guidelines).

Please see:
http://doc.trolltech.com/4.3/qmessagebox.html#setWindowTitle

----
That the QErrorMessage is placed behind the main dialog is added to the Task tracker here:
http://trolltech.com/developer/task-tracker/index_html?id=182247&method=entry

If you have bug reports concerning Qt you should probably send them to qt-bugs@trolltech.com so they can be fixed.