def createEditor(self, manager, property, parent):
editor = QScrollBar(Qt.Horizontal, parent)
self.d_ptr.initializeEditor(property, editor)
editor.setSingleStep(manager.singleStep(property))
editor.setRange(manager.minimum(property), manager.maximum(property))
editor.setValue(manager.value(property))
editor.valueChanged.connect(self.d_ptr.slotSetValue)
editor.destroyed.connect(self.d_ptr.slotEditorDestroyed)
return editor
###
# \internal
#
# Reimplemented from the QtAbstractEditorFactory class.
###
qteditorfactory.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录