summaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_844.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/bug_844.py')
-rw-r--r--tests/QtGui/bug_844.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/QtGui/bug_844.py b/tests/QtGui/bug_844.py
new file mode 100644
index 0000000..e01d7ea
--- /dev/null
+++ b/tests/QtGui/bug_844.py
@@ -0,0 +1,19 @@
+from PySide.QtGui import *
+from PySide.QtCore import *
+
+class QtKeyPressListener(QObject):
+ def __init__(self, obj):
+ QObject.__init__(self)
+ obj.installEventFilter(self)
+ self.fConnections = {}
+
+ def eventFilter(self, obj, event):
+ # This used to crash here due to a misbehaviour of type discovery!
+ return QObject.eventFilter(self, obj, event)
+
+app = QApplication([])
+key_listener = QtKeyPressListener(app)
+w = QLabel('Hello')
+w.show()
+QTimer.singleShot(0, w.close)
+app.exec_()