aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/snippets/qtbase/src/widgets/doc/snippets/stringlistmodel/model_0.h.py
blob: 02a02aaf8fb24ec626a96dc34fe2d53abb76b619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class StringListModel(QAbstractListModel):
    def __init__(self, strings, parent=None):
        ...

    def rowCount(self, parent=QModelIndex()):
        ...

    def data(self, index, role):
        ...

    def headerData(self, section, orientation, role=Qt.DisplayRole):
        ...

    def flags(self, index):
        ...

    def setData(self, index, value, role=Qt.EditRole):
        ...

    def insertRows(self, position, rows, parent):
        ...

    def removeRows(self, position, rows, parent):
        ...