aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_430.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/bug_430.py')
-rw-r--r--tests/QtGui/bug_430.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/QtGui/bug_430.py b/tests/QtGui/bug_430.py
new file mode 100644
index 000000000..256c4e203
--- /dev/null
+++ b/tests/QtGui/bug_430.py
@@ -0,0 +1,14 @@
+import sys
+from PySide.QtCore import *
+from PySide.QtGui import *
+
+class ListModel(QAbstractListModel):
+ def rowCount(self, parent = QModelIndex()):
+ return len(self._items)
+
+app = QApplication([])
+model = ListModel()
+v = QListView()
+v.setModel(model)
+QTimer.singleShot(0, v.close)
+app.exec_()