Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QDialog with both Minimize and Help button?
Qt 6.11 is out! See what's new in the release blog

QDialog with both Minimize and Help button?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 4.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rturrentine
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    1
    • R Offline
      R Offline
      RazrFalcon
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rturrentine
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved