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)
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)