blob: 8baa7c17242e4b8ad630df1b1ff380c285d001db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import sys
from PySide.QtCore import *
from PySide.QtGui import *
class ListModel(QAbstractListModel):
def rowCount(self, parent = QModelIndex()):
return 0
app = QApplication([])
model = ListModel()
v = QListView()
v.setModel(model)
QTimer.singleShot(0, v.close)
app.exec_()
|