aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_716.py
blob: fe5315e5bab8c645d1d03dfe273f4cbf92acc086 (plain)
1
2
3
4
5
6
7
8
9
from PySide.QtCore import Qt, QPersistentModelIndex
from PySide.QtGui import QStringListModel

if __name__ == '__main__':
    stringListModel = QStringListModel(['one', 'two'])
    idx = stringListModel.index(1, 0)
    persistentModelIndex = QPersistentModelIndex(idx)
    stringListModel.data(persistentModelIndex, Qt.DisplayRole)