qteditorfactory.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:QtPropertyBrowserV2.6-for-pyqt5 作者: theall 项目源码 文件源码
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.
    ###
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号