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