Skip to content

Instantly share code, notes, and snippets.

@jsatt
Created November 9, 2015 22:29
Show Gist options
  • Save jsatt/400adcc7a82a70f99187 to your computer and use it in GitHub Desktop.
Save jsatt/400adcc7a82a70f99187 to your computer and use it in GitHub Desktop.
see all events on a qt widget
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+ self.platformWindow().installEventFilter(self)
+
+ def eventFilter(self, obj, event):
+ print(event.type(), obj)
+ return super().eventFilter(obj, event)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment