QDesignerFormEditorInterface Class Reference

[ QtDesigner module]

The QDesignerFormEditorInterface class allows you to access Qt Designer's various components. 更多...

继承 QObject .

方法


详细描述

The QDesignerFormEditorInterface class allows you to access Qt Designer's various components.

Qt Designer 's current QDesignerFormEditorInterface object holds information about all Qt Designer 's components: The action editor, the object inspector, the property editor, the widget box, and the extension and form window managers. QDesignerFormEditorInterface contains a collection of functions that provides interfaces to all these components. They are typically used to query (and manipulate) the respective component. 例如:

         QDesignerObjectInspectorInterface *objectInspector = 0;
         objectInspector = formEditor->objectInspector();
         QDesignerFormWindowManagerInterface *manager = 0;
         manager = formEditor->formWindowManager();
         objectInspector->setFormWindow(manager->formWindow(0));
			

QDesignerFormEditorInterface is not intended to be instantiated directly. A pointer to Qt Designer 's current QDesignerFormEditorInterface object ( formEditor 在 example above) is provided by the QDesignerCustomWidgetInterface.initialize () function's parameter. When implementing a custom widget plugin, you must subclass the QDesignerCustomWidgetInterface to expose your plugin to Qt Designer .

QDesignerFormEditorInterface also provides functions that can set the action editor, property editor, object inspector and widget box. These are only useful if you want to provide your own custom components.

If designer is embedded in another program, one could to provide its own settings manager. The manager is used by the components of Qt Designer to store/retrieve persistent configuration settings. The default manager uses QSettings as the backend.

Finally, QDesignerFormEditorInterface provides the topLevel () function that returns Qt Designer 's top-level widget.


方法文档编制

QDesignerFormEditorInterface.__init__ ( self , QObject   parent  = None)

parent argument, if not None, causes self to be owned by Qt instead of PyQt.

构造 QDesignerFormEditorInterface 对象采用给定 parent .

QDesignerActionEditorInterface QDesignerFormEditorInterface.actionEditor ( self )

Returns an interface to Qt Designer 's action editor.

另请参阅 setActionEditor ().

QExtensionManager QDesignerFormEditorInterface.extensionManager ( self )

Returns an interface to Qt Designer 's extension manager.

QDesignerFormWindowManagerInterface QDesignerFormEditorInterface.formWindowManager ( self )

Returns an interface to Qt Designer 's form window manager.

QDesignerObjectInspectorInterface QDesignerFormEditorInterface.objectInspector ( self )

Returns an interface to Qt Designer 's object inspector.

另请参阅 setObjectInspector ().

QDesignerPropertyEditorInterface QDesignerFormEditorInterface.propertyEditor ( self )

Returns an interface to Qt Designer 's property editor.

另请参阅 setPropertyEditor ().

QDesignerFormEditorInterface.setActionEditor ( self , QDesignerActionEditorInterface   actionEditor )

Qt Designer 's action editor to be the specified actionEditor .

另请参阅 actionEditor ().

QDesignerFormEditorInterface.setObjectInspector ( self , QDesignerObjectInspectorInterface   objectInspector )

Qt Designer 's object inspector to be the specified objectInspector .

另请参阅 objectInspector ().

QDesignerFormEditorInterface.setPropertyEditor ( self , QDesignerPropertyEditorInterface   propertyEditor )

Qt Designer 's property editor to be the specified propertyEditor .

另请参阅 propertyEditor ().

QDesignerFormEditorInterface.setWidgetBox ( self , QDesignerWidgetBoxInterface   widgetBox )

Qt Designer 's widget box to be the specified widgetBox .

另请参阅 widgetBox ().

QWidget QDesignerFormEditorInterface.topLevel ( self )

返回 Qt Designer 's top-level widget.

QDesignerWidgetBoxInterface QDesignerFormEditorInterface.widgetBox ( self )

Returns an interface to Qt Designer 's widget box.

另请参阅 setWidgetBox ().