Exemple #1
0
 def setModelData(self, editor: QWidget, model: QAbstractItemModel,
                  index: QModelIndex):
     if index.column() > 0:
         data = editor.currentData()
         index.model().setData(index, data, Qt.EditRole)
         model.clear456(index.row())
         if data:
             self.Dialog.fieldChange(index, data)