def eventFilter(self, obj, event): #print(event.type()) if event.type() == 31: qApp.sendEvent(self.alignPane.viewport(), event) return True else: return False
def keyPressEvent(self, event: QKeyEvent) -> None: qApp.sendEvent(self.parentWidget(), event)
def wheelEvent(self, event: QWheelEvent) -> None: qApp.sendEvent(self.parentWidget(), event)