QDesignerFormEditorInterface#
The QDesignerFormEditorInterface
class allows you to access Qt Designer’s various components. More…
Synopsis#
Functions#
def
actionEditor
()def
extensionManager
()def
formWindowManager
()def
objectInspector
()def
pluginInstances
()def
propertyEditor
()def
resourceLocation
()def
setActionEditor
(actionEditor)def
setExtensionManager
(extensionManager)def
setFormManager
(formWindowManager)def
setObjectInspector
(objectInspector)def
setPropertyEditor
(propertyEditor)def
setTopLevel
(topLevel)def
setWidgetBox
(widgetBox)def
topLevel
()def
widgetBox
()
Static functions#
def
createIcon
(name)
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 current QDesignerFormEditorInterface
object (formEditor
in the example above) is provided by the 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.
See also
- class PySide6.QtDesigner.QDesignerFormEditorInterface([parent=None])#
- Parameters:
parent –
PySide6.QtCore.QObject
Constructs a QDesignerFormEditorInterface
object with the given parent
.
- PySide6.QtDesigner.QDesignerFormEditorInterface.actionEditor()#
- Return type:
Returns an interface to Qt Designer's action editor.
See also
- static PySide6.QtDesigner.QDesignerFormEditorInterface.createIcon(name)#
- Parameters:
name – str
- Return type:
- PySide6.QtDesigner.QDesignerFormEditorInterface.extensionManager()#
- Return type:
Returns an interface to Qt Designer's extension manager.
- PySide6.QtDesigner.QDesignerFormEditorInterface.formWindowManager()#
Returns an interface to Qt Designer's form window manager.
- PySide6.QtDesigner.QDesignerFormEditorInterface.objectInspector()#
- Return type:
Returns an interface to Qt Designer's object inspector.
See also
- PySide6.QtDesigner.QDesignerFormEditorInterface.pluginInstances()#
- PySide6.QtDesigner.QDesignerFormEditorInterface.propertyEditor()#
- Return type:
Returns an interface to Qt Designer's property editor.
See also
- PySide6.QtDesigner.QDesignerFormEditorInterface.resourceLocation()#
- Return type:
str
- PySide6.QtDesigner.QDesignerFormEditorInterface.setActionEditor(actionEditor)#
- Parameters:
actionEditor –
PySide6.QtDesigner.QDesignerActionEditorInterface
Sets Qt Designer's action editor to be the specified actionEditor
.
See also
- PySide6.QtDesigner.QDesignerFormEditorInterface.setExtensionManager(extensionManager)#
- Parameters:
extensionManager –
PySide6.QtDesigner.QExtensionManager
- PySide6.QtDesigner.QDesignerFormEditorInterface.setFormManager(formWindowManager)#
- Parameters:
formWindowManager –
PySide6.QtDesigner.QDesignerFormWindowManagerInterface
- PySide6.QtDesigner.QDesignerFormEditorInterface.setObjectInspector(objectInspector)#
- Parameters:
objectInspector –
PySide6.QtDesigner.QDesignerObjectInspectorInterface
Sets Qt Designer's object inspector to be the specified objectInspector
.
See also
- PySide6.QtDesigner.QDesignerFormEditorInterface.setPropertyEditor(propertyEditor)#
- Parameters:
propertyEditor –
PySide6.QtDesigner.QDesignerPropertyEditorInterface
Sets Qt Designer's property editor to be the specified propertyEditor
.
See also
- PySide6.QtDesigner.QDesignerFormEditorInterface.setTopLevel(topLevel)#
- Parameters:
topLevel –
PySide6.QtWidgets.QWidget
- PySide6.QtDesigner.QDesignerFormEditorInterface.setWidgetBox(widgetBox)#
- Parameters:
widgetBox –
PySide6.QtDesigner.QDesignerWidgetBoxInterface
Sets Qt Designer's widget box to be the specified widgetBox
.
See also
- PySide6.QtDesigner.QDesignerFormEditorInterface.topLevel()#
- Return type:
Returns Qt Designer's top-level widget.
- PySide6.QtDesigner.QDesignerFormEditorInterface.widgetBox()#
- Return type:
Returns an interface to Qt Designer's widget box.
See also