Example #1
0
 def event(self, e):
     if e.type() == QEvent.ToolTip:
         # show action tooltip instead of widget tooltip
         act = self.actionAt(e.pos())
         if act and act.toolTip() != "None":
             QToolTip.showText(e.globalPos(), act.toolTip(), self)
             return True
     return QMenu.event(self, e)
Example #2
0
 def event(self, e):
     if e.type() == QEvent.ToolTip:
         # show action tooltip instead of widget tooltip
         act = self.actionAt(e.pos());
         if act and act.toolTip() != "None":
             QToolTip.showText(e.globalPos(), act.toolTip(), self)
             return True
     return QMenu.event(self, e)