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. Qt::WindowContextHelpButtonHint for QMainWindow on Windows
Forum Updated to NodeBB v4.3 + New Features

Qt::WindowContextHelpButtonHint for QMainWindow on Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 3.2k Views 3 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.
  • l3u_L Offline
    l3u_L Offline
    l3u_
    wrote on last edited by l3u_
    #1

    Hi :-)

    I do setWindowFlags(windowFlags() | Qt::WindowContextHelpButtonHint); in the constructor of my QMainWindow derived main window class to get the "?" WhatsThis button in the window title bar. This works nicely on my Linux machine (where I develop the program), but it apparently has no effect on Windows – here, the "?" button is not displayed.

    What's wrong here? Do I have to do something else for Windows? Thanks for all help!

    Cheers, Tobias

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      As far as i know, the "?" is only working for Dialogs on Windows platform.

      1 Reply Last reply
      0
      • l3u_L Offline
        l3u_L Offline
        l3u_
        wrote on last edited by
        #3

        Ah okay. That's too bad …

        mrjjM 1 Reply Last reply
        0
        • l3u_L l3u_

          Ah okay. That's too bad …

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          @l3u_
          Hi
          To be more exact. You can use ? on mainwindows if its ok it have no min / max buttons.
          Alternatively you can use your own button and get same effect.
          Its just in status bar instead of caption.
          https://forum.qt.io/topic/96221/gui-design-how-to-properly-activate-whats-this-help/2

          1 Reply Last reply
          0
          • l3u_L Offline
            l3u_L Offline
            l3u_
            wrote on last edited by l3u_
            #5

            What I have on Linux (and thought it "simply" would be the same on Windows) is the "?" button in the title bar of my MainWindow, just like it's the default for a dialog. Not having min/max buttons is not possible, I need them and only the "?" in addition.

            But apparently (after some further research), Windows simply does not allow to have the dialog appearance on a main window, so I think I won't get this for my Windows version.

            Perhaps, this should be mentionned in the docs …

            mrjjM jsulmJ 2 Replies Last reply
            0
            • l3u_L l3u_

              What I have on Linux (and thought it "simply" would be the same on Windows) is the "?" button in the title bar of my MainWindow, just like it's the default for a dialog. Not having min/max buttons is not possible, I need them and only the "?" in addition.

              But apparently (after some further research), Windows simply does not allow to have the dialog appearance on a main window, so I think I won't get this for my Windows version.

              Perhaps, this should be mentionned in the docs …

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by mrjj
              #6

              @l3u_
              Well the Title is drawn by the OS and
              the "?" cannot be draw with min/max since
              Windows simply dont support that combination.

              Yes would be great with a note about that in the docs.

              1 Reply Last reply
              0
              • l3u_L l3u_

                What I have on Linux (and thought it "simply" would be the same on Windows) is the "?" button in the title bar of my MainWindow, just like it's the default for a dialog. Not having min/max buttons is not possible, I need them and only the "?" in addition.

                But apparently (after some further research), Windows simply does not allow to have the dialog appearance on a main window, so I think I won't get this for my Windows version.

                Perhaps, this should be mentionned in the docs …

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @l3u_ said in Qt::WindowContextHelpButtonHint for QMainWindow on Windows:

                Perhaps, this should be mentionned in the docs …

                You could contribute a patch to the doc :-)

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • l3u_L Offline
                  l3u_L Offline
                  l3u_
                  wrote on last edited by
                  #8

                  I'll have a look at it ;-)

                  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