QStandardItem is a property setEditable if it is True then you can edit it. It is necessary to catch the edit completion event.

    1 answer 1

    I smoked the dock and decided the question like this:

    class Tree(QTreeView): def __init__(self): QTreeView.__init__(self) self.model = QStandardItemModel() self.setModel(self.model) self.model.itemChanged.connect(self.event_edit) ... def event_edit(self): pass