aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/snippets/qtbase/examples/widgets/tutorials/modelview/5_edit/mymodel_Quoting_ModelView_Tutorial.h.py
blob: 4da28f0a070f9aab5af0c22b9b0e872f50dda56e (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
25
26
27
from PySide6.QtCore import QAbstractTableModel

COLS = 3
ROWS = 2


class MyModel(QAbstractTableModel):

    editCompleted = Signal(str)

    def __init__(self, parent=None):
        ...

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

    def columnCount(self, parent=None):
        ...

    def data(self, index, role=Qt.DisplayRole):
        ...

    def setData(self, index, value, role):
        ...

    def flags(self, index):
        ...