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. WhatsThis '?' not showing
Forum Updated to NodeBB v4.3 + New Features

WhatsThis '?' not showing

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 375 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.
  • N Offline
    N Offline
    nekkceb
    wrote on last edited by
    #1

    I have a large application that I recently updated from Qt 5.15 (32-bit, MinGW) to Qt 6.6 (64-bit MinGW). The little ''?" in the upper right of all my dialog boxes no longer appears, so my whatsthis help pop-ups do not work.
    The source code for the two compilations is EXACTLY the same.
    Screen shot for 5.15, 32-bit:
    ac061c59-12c3-48e1-a60c-f0b8adeab7fc-image.png
    And here is the same screen with the Qt 6.6, 64-bit:
    7433b868-7e67-43db-b546-913b7fa83e9e-image.png
    Where is the whatsThis '?'. I do not see this issue in the change logs, though they are pretty extensive and hard to find stuff in there.

    Pl45m4P 1 Reply Last reply
    0
    • N nekkceb

      I have a large application that I recently updated from Qt 5.15 (32-bit, MinGW) to Qt 6.6 (64-bit MinGW). The little ''?" in the upper right of all my dialog boxes no longer appears, so my whatsthis help pop-ups do not work.
      The source code for the two compilations is EXACTLY the same.
      Screen shot for 5.15, 32-bit:
      ac061c59-12c3-48e1-a60c-f0b8adeab7fc-image.png
      And here is the same screen with the Qt 6.6, 64-bit:
      7433b868-7e67-43db-b546-913b7fa83e9e-image.png
      Where is the whatsThis '?'. I do not see this issue in the change logs, though they are pretty extensive and hard to find stuff in there.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @nekkceb

      How do you create your GUI? Any *.ui file involved, where something was changed manually?

      I think it's a WindowFlag issue.

      The CustomizeWindowHint flag is used to enable customization of the window controls. This flag must be set to allow the WindowTitleHint, WindowSystemMenuHint, WindowMinimizeButtonHint, WindowMaximizeButtonHint and WindowCloseButtonHint flags to be changed.

      Qt::WindowContextHelpButtonHint
      Adds a context help button to dialogs. On some platforms this implies Qt::WindowSystemMenuHint for it to work.

      (from: https://doc.qt.io/qt-6/qt.html#WindowType-enum)

      Try

      setWindowFlags(Qt::CustomizeWindowHint | Qt::WindowContextHelpButtonHint);
      

      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      N 1 Reply Last reply
      2
      • Pl45m4P Pl45m4

        @nekkceb

        How do you create your GUI? Any *.ui file involved, where something was changed manually?

        I think it's a WindowFlag issue.

        The CustomizeWindowHint flag is used to enable customization of the window controls. This flag must be set to allow the WindowTitleHint, WindowSystemMenuHint, WindowMinimizeButtonHint, WindowMaximizeButtonHint and WindowCloseButtonHint flags to be changed.

        Qt::WindowContextHelpButtonHint
        Adds a context help button to dialogs. On some platforms this implies Qt::WindowSystemMenuHint for it to work.

        (from: https://doc.qt.io/qt-6/qt.html#WindowType-enum)

        Try

        setWindowFlags(Qt::CustomizeWindowHint | Qt::WindowContextHelpButtonHint);
        
        N Offline
        N Offline
        nekkceb
        wrote on last edited by
        #3

        @Pl45m4 Thanks for the hint about hints! I did as you suggest, and now I get the little '?'. Problem solved, but why did I have to do this in Qt 6.6 but not Qt 5.15? Again, for the two builds I use EXACTLY THE SAME SOURCE CODE!

        Pl45m4P 1 Reply Last reply
        0
        • N nekkceb

          @Pl45m4 Thanks for the hint about hints! I did as you suggest, and now I get the little '?'. Problem solved, but why did I have to do this in Qt 6.6 but not Qt 5.15? Again, for the two builds I use EXACTLY THE SAME SOURCE CODE!

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by Pl45m4
          #4

          @nekkceb said in WhatsThis '?' not showing:

          Qt 6.6 but not Qt 5.15?

          Since the step from 5.15 to 6.6 is pretty huge (a major release + some LTS versions in between), you can't be sure that the same code works the same for both versions.
          Defaults could have changed or something else.

          That's why upgrading/porting a program from one to another release is often pain in the ass ;-)
          Things that have worked, stopped working, changed or even got removed completely.

          You could scan the release and patch notes between 5.15 and 6.6 to see if you can find some more information

          A good start is always checking (and comparing) both documentation pages.

          I use EXACTLY THE SAME SOURCE CODE!

          The flags can be set in the *.ui file with QtDesigner. That's why I was asking...


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          N 1 Reply Last reply
          0
          • Pl45m4P Pl45m4

            @nekkceb said in WhatsThis '?' not showing:

            Qt 6.6 but not Qt 5.15?

            Since the step from 5.15 to 6.6 is pretty huge (a major release + some LTS versions in between), you can't be sure that the same code works the same for both versions.
            Defaults could have changed or something else.

            That's why upgrading/porting a program from one to another release is often pain in the ass ;-)
            Things that have worked, stopped working, changed or even got removed completely.

            You could scan the release and patch notes between 5.15 and 6.6 to see if you can find some more information

            A good start is always checking (and comparing) both documentation pages.

            I use EXACTLY THE SAME SOURCE CODE!

            The flags can be set in the *.ui file with QtDesigner. That's why I was asking...

            N Offline
            N Offline
            nekkceb
            wrote on last edited by
            #5

            @Pl45m4 Thanks again. I figured in the end it must be a change in default settings. I did make a pretty significant jump from 5.15 to 6.6, though in the end it was relatively straightforward. No super major changes!

            1 Reply Last reply
            0
            • N nekkceb has marked this topic as solved on

            • Login

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