(self, value, role=Qt.UserRole+1)
Reimplemented from QStandardItem
Reimplemented from QStandardItem
Reimplemented from QStandardItem
def setData(self, value, role=Qt.UserRole+1):
        # type: (Any, Qt.ItemDataRole) -> None
        """Reimplemented from QStandardItem"""
        self.__data[role] = value
        model = self.model()
        if model is not None:
            midx = model.indexFromItem(self)
            model.dataChanged.emit(midx, midx, [role])
def setData ( self , value , role = Qt . UserRole + 1 ) : # type: (Any, Qt.ItemDataRole) -> None self . __data [ role ] = value model = self . model ( ) if model is not None : midx = model . indexFromItem ( self ) model . dataChanged . emit ( midx , midx , [ role ] )