def flags(self, index: QModelIndex): flags = super().flags(index) if index.column() == 1: flags |= Qt.ItemIsEditable return flags