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. tool tip draws behind the sub menu
Forum Updated to NodeBB v4.3 + New Features

tool tip draws behind the sub menu

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.4k 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.
  • _ Offline
    _ Offline
    __jb__
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • _ Offline
        _ Offline
        __jb__
        wrote on last edited by
        #3

        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-worxR 1 Reply Last reply
        0
        • _ __jb__

          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-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @__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
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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
            0

            • Login

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