[QtDesigner module]

该QDesignerFormEditorInterface类允许您访问Qt设计器的各个组成部分。More…

继承QObject

Methods

  • __init__ (self, QObject parent = None)
  • QDesignerActionEditorInterface actionEditor (self)
  • QExtensionManager extensionManager (self)
  • QDesignerFormWindowManagerInterface formWindowManager (self)
  • QDesignerObjectInspectorInterface objectInspector (self)
  • QDesignerPropertyEditorInterface propertyEditor (self)
  • setActionEditor (self, QDesignerActionEditorInterface actionEditor)
  • setObjectInspector (self, QDesignerObjectInspectorInterface objectInspector)
  • setPropertyEditor (self, QDesignerPropertyEditorInterface propertyEditor)
  • setWidgetBox (self, QDesignerWidgetBoxInterface widgetBox)
  • QWidget topLevel (self)
  • QDesignerWidgetBoxInterface widgetBox (self)

Detailed Description

该QDesignerFormEditorInterface类允许您访问Qt设计器的各个组成部分。

Qt Designer目前的QDesignerFormEditorInterface对象掌握所有的信息Qt Designer的组件:动作编辑器,在Object Inspector ,属性编辑器,在窗口小部件中,并扩展和形式的窗口管理器。 QDesignerFormEditorInterface包含的函数的集合,它提供的接口对所有这些组件。它们通常用于查询(和操作)的各个组件。例如:

  1. [QDesignerObjectInspectorInterface](docs_qdesignerobjectinspectorinterface.html) *objectInspector = 0;
  2. objectInspector = formEditor->objectInspector();
  3. [QDesignerFormWindowManagerInterface](docs_qdesignerformwindowmanagerinterface.html) *manager = 0;
  4. manager = formEditor->formWindowManager();
  5. objectInspector->setFormWindow(manager->formWindow(0));

QDesignerFormEditorInterface不打算直接实例化。一个指向Qt Designer目前的QDesignerFormEditorInterface对象(formEditor在上面的例子)是由提供QDesignerCustomWidgetInterface.initialize( )函数的参数。当实现一个自定义的widget插件,你必须在子类QDesignerCustomWidgetInterface暴露你的插件Qt Designer

QDesignerFormEditorInterface还提供了功能,可以设置动作编辑器,属性编辑器,对象观察器和小工具盒。如果你想提供自己的自定义组件这些都是唯一有用的。

如果设计师是嵌入在另一个程序中,一个人能提供自己的设置管理。管理者所使用的部件Qt Designer存储/检索持久的配置设置。默认管理器的用途QSettings作为后端。

最后, QDesignerFormEditorInterface提供topLevel( )函数返回Qt Designer的顶级窗口部件。


Method Documentation

  1. QDesignerFormEditorInterface.__init__ (self, QObject parent = None)

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

构造一个QDesignerFormEditorInterface与给定对象parent

  1. QDesignerActionEditorInterface QDesignerFormEditorInterface.actionEditor (self)

[

返回一个接口Qt Designer的动作编辑器。

](docs_qdesigneractioneditorinterface.html)

See also setActionEditor( ) 。

  1. QExtensionManager QDesignerFormEditorInterface.extensionManager (self)

[

返回一个接口Qt Designer的扩展管理器。

](docs_qextensionmanager.html)

  1. QDesignerFormWindowManagerInterface QDesignerFormEditorInterface.formWindowManager (self)

[

返回一个接口Qt Designer的形成窗口管理器。

](docs_qdesignerformwindowmanagerinterface.html)

  1. QDesignerObjectInspectorInterface QDesignerFormEditorInterface.objectInspector (self)

[

返回一个接口Qt Designer的对象检查。

](docs_qdesignerobjectinspectorinterface.html)

See also setObjectInspector( ) 。

  1. QDesignerPropertyEditorInterface QDesignerFormEditorInterface.propertyEditor (self)

[

返回一个接口Qt Designer的属性编辑器。

](docs_qdesignerpropertyeditorinterface.html)

See also setPropertyEditor( ) 。

  1. QDesignerFormEditorInterface.setActionEditor (self, QDesignerActionEditorInterface actionEditor)

Sets Qt Designer的动作编辑器中指定的actionEditor

See also actionEditor( ) 。

  1. QDesignerFormEditorInterface.setObjectInspector (self, QDesignerObjectInspectorInterface objectInspector)

Sets Qt Designer被指定的对象检查objectInspector

See also objectInspector( ) 。

  1. QDesignerFormEditorInterface.setPropertyEditor (self, QDesignerPropertyEditorInterface propertyEditor)

Sets Qt Designer的属性编辑器中指定的propertyEditor

See also propertyEditor( ) 。

  1. QDesignerFormEditorInterface.setWidgetBox (self, QDesignerWidgetBoxInterface widgetBox)

Sets Qt Designer的小工具框指定widgetBox

See also widgetBox( ) 。

  1. QWidget QDesignerFormEditorInterface.topLevel (self)

[

Returns Qt Designer的顶级窗口部件。

](docs_qwidget.html)

  1. QDesignerWidgetBoxInterface QDesignerFormEditorInterface.widgetBox (self)

[

返回一个接口Qt Designer的小工具盒。

](docs_qdesignerwidgetboxinterface.html)

See also setWidgetBox( ) 。