PDA

View Full Version : Questions about windowFlags



lalesculiviu
26th June 2010, 14:25
About using window flags:

I have more QDialog-s. For some reasons listed below, may I make the windowFlags for them to be Qt::Window? Will the properties and behavior of the dialogs still be correct, like the close(), rejected() and accepted() slots?

Will it have always the minimize and maximize buttons shown, if I make the window flags to be Qt::Window, under all platforms? Or should I also add to flags Qt::WindowMinMaxButtonsHint with the OR operation?

What is exactly the meaning of Qt::CustomizeWindowHint? (it is not clear in the Qt doc). Should I also add this, with the OR operation?

The reason why I would like to make the flags for some dialogs, from Qt::Dialog to Qt::Window: under GNOME, the dialogs do not show the maximize button, even if I add the flag Qt::WindowMinMaxButtonsHint. I need this maximime button.