aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_589.py
blob: 0c7cdecbee1a72b141e053747880c9774c9b3fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()