Пример #1
0
 def eventFilter(self, obj, event):
     #print(event.type())
     if event.type() == 31:
         qApp.sendEvent(self.alignPane.viewport(), event)
         return True
     else:
         return False
Пример #2
0
 def keyPressEvent(self, event: QKeyEvent) -> None:
     qApp.sendEvent(self.parentWidget(), event)
Пример #3
0
 def wheelEvent(self, event: QWheelEvent) -> None:
     qApp.sendEvent(self.parentWidget(), event)