QPyDesignerTaskMenuExtension Class Reference

[QtDesigner module]

继承QObjectQDesignerTaskMenuExtension

Methods

  • __init__ (self, QObject parent)

Detailed Description

该QPyDesignerTaskMenuExtension类是提供给解决的事实,这是不可能的Python类从多个Qt类派生。

为了自定义条目添加到Qt Designer中的任务菜单中,你应该实现从QPyDesignerTaskMenuExtension派生的Python类,而不是一个源自QObjectQDesignerTaskMenuExtension


Method Documentation

  1. QPyDesignerTaskMenuExtension.__init__ (self, QObject parent)

parent的说法,如果不是没有,原因self通过Qt的,而不是PyQt的拥有。