diff options
Diffstat (limited to 'tests/QtGui/bug_675.py')
-rw-r--r-- | tests/QtGui/bug_675.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/QtGui/bug_675.py b/tests/QtGui/bug_675.py new file mode 100644 index 000000000..d490f0f6d --- /dev/null +++ b/tests/QtGui/bug_675.py @@ -0,0 +1,15 @@ +from PySide.QtCore import * +from PySide.QtGui import * + +app = QApplication([]) + +scene = QGraphicsScene() + +# don't segfault due to lack of keepReferenceCall +textEdit = scene.addWidget(QTextEdit()) + +layout = QGraphicsLinearLayout() +layout.addItem(textEdit) + +view = QGraphicsView(scene) +view.show() |