November 4, 2011

rturrentine rturrentine
Lab Rat
10 posts

QDialog with both Minimize and Help button?

 

I would like to show both the minimize and context help buttons on my QDialog derived dialogs. I’m using Qt 4.7.0 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.

Any suggestions?

Thanks

2 replies

November 4, 2011

RazrFalcon RazrFalcon
Lab Rat
114 posts

I think, it because window button showing depends on OS.
Or DE: Aero, GNOME, KDE

 Signature 

QT != Qt
Gentoo + KDE

November 4, 2011

rturrentine rturrentine
Lab Rat
10 posts

I have been doing this on Windows Vista and Windows 7 so I tried RedHat Linux. On RHEL, only the close (X) button shows up.

 
  ‹‹ "QTimer can only be used with threads started with QThread" warning      [solved] Helper class to open a connection to an defined database ››

You must log in to post a reply. Not a member yet? Register here!