aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_668.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/bug_668.py')
-rw-r--r--tests/QtGui/bug_668.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/QtGui/bug_668.py b/tests/QtGui/bug_668.py
new file mode 100644
index 000000000..924ff1946
--- /dev/null
+++ b/tests/QtGui/bug_668.py
@@ -0,0 +1,21 @@
+# coding: utf-8
+from PySide.QtCore import *
+from PySide.QtGui import *
+
+import sys
+
+class A(QMainWindow):
+ def __init__(self, parent=None):
+ super(A, self).__init__(parent)
+ a = QFileSystemModel(self)
+ a.setRootPath(QDir.homePath())
+
+ v = QTreeView(self)
+ v.setModel(a)
+ self.setCentralWidget(v)
+
+app = QApplication([])
+m = A()
+m.show()
+QTimer.singleShot(0, m.close)
+app.exec_()