Solved minimize and context help buttons on my QDialog
kaleem last edited by kaleem
I would like to show both the minimize and context help buttons on my QDialog derived dialogs. I'm using Qt 4.2. and I can't seem to do it using setWindowFlags. I have my own dialog class that is subclassed from QDialog. In the constructor I call:
setWindowFlags( windowFlags() | Qt::WindowMinimizeButtonHint | Qt::WindowContextHelpButtonHint );
The minimize and maximum buttons show (as well as the close button) however the "?" help button does not. The only way I can show the help button is if I do not show minimize or maximize.
I had this issue earlier too but never resolved it. I could not get the minimize/maximize buttons and the help button at the same time. If I had the min/max hint set, it always ignores the help hint. If I only set the hint for help, then I get the help button.
Hi and welcome to devnet,
Can you share your dialog setup code ?
Also Qt 4.2 ? Are you locked to that very old version ?
It is not possible for Context Help button and Maximize button to co-exist on Windows.
System does not allow it.
kaleem last edited by
@SGaist sorry correction my QT version is 4.4.3 not 4.2
Following is my code in constructor of class which is inheriting QDialog
fl = Qt::Window | Qt::WindowContextHelpButtonHint | Qt::WindowMaximizeButtonHint
If you load the
you will see that combination is not possible.
As @alex_malyu already pointed out. :)