aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_589.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/bug_589.py')
-rw-r--r--tests/QtGui/bug_589.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/QtGui/bug_589.py b/tests/QtGui/bug_589.py
new file mode 100644
index 000000000..0c7cdecbe
--- /dev/null
+++ b/tests/QtGui/bug_589.py
@@ -0,0 +1,19 @@
+# trimmed down diagramscene.py to demonstrate crash in sizeHint()
+
+import sys
+from PySide import QtCore, QtGui
+import unittest
+
+class CustomWidget(QtGui.QGraphicsProxyWidget):
+ def itemChange(self, eventType, value):
+ QtGui.QGraphicsProxyWidget.itemChange(self, eventType, value)
+
+class Bug589(unittest.TestCase):
+ def testCase(self):
+ widget = QtGui.QGraphicsProxyWidget()
+ custom = CustomWidget()
+ custom.setParentItem(widget)
+
+if __name__ == "__main__":
+ app = QtGui.QApplication(sys.argv)
+ unittest.main()