code: def timerEvent( self, event ):
          
          if self.currentMode() == XPopupWidget.Mode.ToolTip:
              self.killTimer(event.timerId())
              event.accept()
              self.close()
          else:
              super(XPopupWidget, self).timerEvent(event)
docs: When the timer finishes, hide the tooltip popup widget.
          
          :param      event | <QEvent>