ToolTips wird hinter dem aufklappbaren Menü gezeichnet

Alles rund um die Programmierung mit Qt
Antworten
nebler
Beiträge: 51
Registriert: 9. Juli 2009 15:26

ToolTips wird hinter dem aufklappbaren Menü gezeichnet

Beitrag von nebler »

Hallo zusammen,

mir ist gerade aufgefallen, dass der ToolTip hinter dem aufklappbaren Menü gezeichnet wird.
Siehe: http://imgur.com/BvHi3To
Hat jemand das Phänomen auch bereits gehabt und zufällig schon gelöst?
Der Fehler scheint zu sein, dass wenn man die Maus über das Untermenü fährt das ToolTip nicht gelöscht wird.

Verwendete Qt Version ist 5.4.2.

Um das Verhalten zu reproduzieren, muss man erst warten bis der ToolTip für X oder Y auftaucht und dann "schnell" in das aufklappbare Menü zu A navigieren und schon wird es falsch gezeichnet.

Vielen Dank euch.

Viele Grüße,

----
Beim hochladen der Bilddatei als Anhang kam folgende Fehlermeldung:
Das Kontingent für Dateianhänge ist bereits vollständig ausgenutzt.

Form Datei

Code: Alles auswählen

<?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>
Antworten