Created
November 9, 2015 22:29
-
-
Save jsatt/400adcc7a82a70f99187 to your computer and use it in GitHub Desktop.
see all events on a qt widget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ 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