def createEditor(self, parent: QWidget, option: QStyleOptionViewItem, index: QModelIndex):
editor = QSpinBox(parent)
editor.setMinimum(self.minimum)
editor.setMaximum(self.maximum)
editor.valueChanged.connect(self.valueChanged)
return editor
评论列表
文章目录