Qt Forum

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

    Unsolved tool tip draws behind the sub menu

    General and Desktop
    3
    5
    1089
    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.
    • _
      __jb__ last edited by

      hi

      I have following menu structure:
      [Menu]

      • Submenu
        ** A (toolTip: AAAAAAAAAAAAA)
        ** B (toolTip: BBBBBBBBBBBB)
      • X (toolTip: XXXXXXXXXXXXX)
      • Y (toolTip: YYYYYYYYYYYYY)

      If I wait for the tool tip at X and I move the mouse while tooltip of X is drawing to the submenu and hover the item A so the tool tip is drawing on a false position. I think the mistake is that the tool tip isn't killing by the mouse hovering of the submenu item. See image: http://imgur.com/BvHi3To

      Is it a bug in Qt 5.4.2 or a mistake in my UI file?
      I'm using windows 7.

      Have any a ((simple)) solution?

      Thanks a lot.

      Regards,

      jb


      Any C++ code is auto generated by the Qt Visual Studio 2013 Add-In.

      UI-File

      <?xml version="1.0" encoding="UTF-8"?>
      <ui version="4.0">
       <class>QMenuTestClass</class>
       <widget class="QMainWindow" name="QMenuTestClass">
        <property name="geometry">
         <rect>
          <x>0</x>
          <y>0</y>
          <width>600</width>
          <height>400</height>
         </rect>
        </property>
        <property name="windowTitle">
         <string>QMenuTest</string>
        </property>
        <widget class="QWidget" name="centralWidget"/>
        <widget class="QMenuBar" name="menuBar">
         <property name="geometry">
          <rect>
           <x>0</x>
           <y>0</y>
           <width>600</width>
           <height>21</height>
          </rect>
         </property>
         <widget class="QMenu" name="menuMenu">
          <property name="title">
           <string>Menu</string>
          </property>
          <property name="toolTipsVisible">
           <bool>true</bool>
          </property>
          <widget class="QMenu" name="menuSubmenu">
           <property name="title">
            <string>Submenu</string>
           </property>
           <property name="toolTipsVisible">
            <bool>true</bool>
           </property>
           <addaction name="actionA"/>
           <addaction name="actionB"/>
           <addaction name="actionC"/>
          </widget>
          <addaction name="menuSubmenu"/>
          <addaction name="actionTest"/>
          <addaction name="actionY"/>
         </widget>
         <addaction name="menuMenu"/>
        </widget>
        <widget class="QToolBar" name="mainToolBar">
         <attribute name="toolBarArea">
          <enum>TopToolBarArea</enum>
         </attribute>
         <attribute name="toolBarBreak">
          <bool>false</bool>
         </attribute>
        </widget>
        <widget class="QStatusBar" name="statusBar"/>
        <action name="actionA">
         <property name="text">
          <string>A</string>
         </property>
         <property name="toolTip">
          <string>AAAAAAAAAAAAAAAAAAAAAAAAA</string>
         </property>
        </action>
        <action name="actionB">
         <property name="text">
          <string>B</string>
         </property>
         <property name="toolTip">
          <string>BBBBBBBBBBBBBB</string>
         </property>
        </action>
        <action name="actionC">
         <property name="text">
          <string>C</string>
         </property>
         <property name="toolTip">
          <string>CCCCCCCCCCCCCCCCCCCC</string>
         </property>
        </action>
        <action name="actionTest">
         <property name="text">
          <string>X</string>
         </property>
         <property name="toolTip">
          <string>XXXXXXXXXXXXXXXX</string>
         </property>
        </action>
        <action name="actionY">
         <property name="text">
          <string>Y</string>
         </property>
         <property name="toolTip">
          <string>YYYYYYYYYYYY</string>
         </property>
        </action>
       </widget>
       <layoutdefault spacing="6" margin="11"/>
       <resources>
        <include location="qmenutest.qrc"/>
       </resources>
       <connections/>
      </ui>
      
      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        No, your UI file is innocent. Can check again if that happens with Qt 5.6 beta ?

        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 0
        • _
          __jb__ last edited by

          Hi SGaist,
          thanks for the welcome amentities.

          Can you tell me please, where I can download the Qt 5.6 beta version?
          Over my installed Qt Maintaince Tool I can only install the Qt 5.5 version.
          And I don't find the download link on the qt.io.

          Is it correct, that no solution/fix for older version exists?

          Thanks.
          Regards,

          raven-worx 1 Reply Last reply Reply Quote 0
          • raven-worx
            raven-worx Moderators @__jb__ last edited by

            @__jb__ said:

            Can you tell me please, where I can download the Qt 5.6 beta version?
            Over my installed Qt Maintaince Tool I can only install the Qt 5.5 version.
            And I don't find the download link on the qt.io.

            They are, but a pretty well hidden.
            Qt 5.6 download

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

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

              The most simple is to go to the download part of your Qt Account page, there you can get it.

              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 0
              • First post
                Last post