aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/snippets/qtbase/examples/widgets/itemviews/spinboxdelegate/delegate_0.h.py
blob: de386a5ac7be119d6b7563fb15ff4eff02d6a984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class SpinBoxDelegate(QStyledItemDelegate):
    """A delegate that allows the user to change integer values from the model
       using a spin box widget. """

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

    def createEditor(self, parent, option, index):
        ...

    def setEditorData(self, editor, index):
        ...

    def setModelData(self, editor, model, index):
        ...

    def updateEditorGeometry(self, editor, option, index):
        ...