def setModelData(self, editor: QWidget, model: QAbstractItemModel, index: QModelIndex) -> None: conf = editor.config model.setData(index, conf)