- class QDesignerFormEditorInterface#
The
QDesignerFormEditorInterface
class allows you to access Qt Designer’s various components. More…Synopsis#
Methods#
def
__init__()
def
actionEditor()
def
propertyEditor()
def
setFormManager()
def
setTopLevel()
def
setWidgetBox()
def
topLevel()
def
widgetBox()
Static functions#
def
createIcon()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
Warning
This section contains snippets that were automatically translated from C++ to Python and may contain errors.
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. For example:objectInspector = formEditor.objectInspector() manager = formEditor.formWindowManager() objectInspector.setFormWindow(manager.formWindow(0))
QDesignerFormEditorInterface
is not intended to be instantiated directly. A pointer to Qt Designer's currentQDesignerFormEditorInterface
object (formEditor
in the example above) is provided by theinitialize()
function’s parameter. When implementing a custom widget plugin, you must subclass theQDesignerCustomWidgetInterface
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 thetopLevel()
function that returns Qt Designer's top-level widget.See also
Constructs a
QDesignerFormEditorInterface
object with the givenparent
.- actionEditor()#
- Return type:
Returns an interface to Qt Designer's action editor.
See also
- extensionManager()#
- Return type:
Returns an interface to Qt Designer's extension manager.
- formWindowManager()#
- Return type:
Returns an interface to Qt Designer's form window manager.
- objectInspector()#
- Return type:
Returns an interface to Qt Designer's object inspector.
See also
- propertyEditor()#
- Return type:
Returns an interface to Qt Designer's property editor.
See also
- resourceLocation()#
- Return type:
str
- setActionEditor(actionEditor)#
- Parameters:
actionEditor –
QDesignerActionEditorInterface
Sets Qt Designer's action editor to be the specified
actionEditor
.See also
- setExtensionManager(extensionManager)#
- Parameters:
extensionManager –
QExtensionManager
- setFormManager(formWindowManager)#
- Parameters:
formWindowManager –
QDesignerFormWindowManagerInterface
- setObjectInspector(objectInspector)#
- Parameters:
objectInspector –
QDesignerObjectInspectorInterface
Sets Qt Designer's object inspector to be the specified
objectInspector
.See also
- setPropertyEditor(propertyEditor)#
- Parameters:
propertyEditor –
QDesignerPropertyEditorInterface
Sets Qt Designer's property editor to be the specified
propertyEditor
.See also
- setWidgetBox(widgetBox)#
- Parameters:
widgetBox –
QDesignerWidgetBoxInterface
Sets Qt Designer's widget box to be the specified
widgetBox
.See also
Returns Qt Designer's top-level widget.
- widgetBox()#
- Return type:
Returns an interface to Qt Designer's widget box.
See also