def event(self, event): if event.type() == QEvent.User: self._doEvent(event) return True return QObject.event(self, event)