PDA

View Full Version : Why the system buttons are disabled on Mac OS?



gtthang
3rd May 2007, 07:26
Hi,

I don't know why my system buttons (minimize, close,...) on the top-left corner of window are disabled when displaying on Mac OS thought it has no problem on Windows?
Please help me!

Thanks a lot.

marcel
3rd May 2007, 07:33
What window flags did you set?
Is it a QDialog or a QMainWindow?

gtthang
3rd May 2007, 10:50
I am using the following function for all my dialogs (inherited from QDialog):

setWindowFlags( Qt::Window | Qt::WindowMinimizeButtonHint | Qt::WindowSystemMenuHint);

I wonder why it works on Windows (buttons is enabled) but Mac is not.
Thanks for your reply.