Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Solved Tooltips are not visible while hovering over menu items

    General and Desktop
    3
    12
    3861
    Loading More Posts
    • 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.
    • S
      Suroh6 last edited by

      I used the designer to create a menu and add tool tips. However, when I hover over the items in the menu the tool tips do not show up. Does anyone know how to fix this?

      mrjj 1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion @Suroh6 last edited by

        @Suroh6
        Should work from Qt 5.1
        https://bugreports.qt.io/browse/QTBUG-13663

        Seem its just turned off pr default
        http://doc.qt.io/qt-5/qmenu.html#toolTipsVisible-prop

        S 1 Reply Last reply Reply Quote 0
        • S
          Suroh6 @mrjj last edited by Suroh6

          @mrjj I was also under the impression that it was fixed but it's not, or at least I'm still having an issue with it.

          Update:
          Yep even with toolTipsVisible

          mrjj 1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion @Suroh6 last edited by mrjj

            @Suroh6
            Even with toolTipsVisible it still do not show?

            Update:
            Hmm, yes. It seems not to want to display the tooltip from the QAction when inside menu.
            Qt 5.7

            S 1 Reply Last reply Reply Quote 1
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              Hi,

              Which version of Qt are you using ? On which platform ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply Reply Quote 1
              • S
                Suroh6 @mrjj last edited by Suroh6

                @SGaist I apologize for not getting back to you faster. Someone took out a telephone pole near my home and it took a few days for the internet to come back up. I'm using 5.7. The ToolTips will not display no matter what I do. As for the platform the issue is present on both windows 10 and linux. (Ubuntu 16.10)

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  Can you check with a more recent version of Qt ? 5.8 is the current and there's 5.9Beta that is available.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  S 1 Reply Last reply Reply Quote 1
                  • S
                    Suroh6 @SGaist last edited by

                    @SGaist I setup 5.8 and I'm still getting the same result.

                    1 Reply Last reply Reply Quote 0
                    • SGaist
                      SGaist Lifetime Qt Champion last edited by

                      Can you provide a minimal compilable sample that triggers this ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        Suroh6 @SGaist last edited by

                        @SGaist I cannot. I was testing to see if it worked because in the past it hadn't. It's for that reason I elected to use the designer to setup a menu. So as to avoid writing the code only to find that the tool tips didn't work. At this point the only example I can provide is just saying "Setup a basic menu via the designer and you'll see the tool tips wont work".

                        I guess the best thing I can do is fill out a bug report.

                        mrjj 1 Reply Last reply Reply Quote 0
                        • mrjj
                          mrjj Lifetime Qt Champion @Suroh6 last edited by

                          @Suroh6
                          When you file a bug report, they will ask for a sample :)
                          If you designed one in Designer, you can grab the code from the
                          setupUI() in mainwindow.
                          also the original bug report shows a workaround
                          https://bugreports.qt.io/browse/QTBUG-13663

                          S 1 Reply Last reply Reply Quote 1
                          • S
                            Suroh6 @mrjj last edited by

                            @mrjj I never knew that... The hover workaround actually fixed my issue I mean it's not the best way to do it but it could be worse. For now I'll mark this as solved. Thanks again!

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post