PySide6.QtDesigner.QDesignerObjectInspectorInterface¶
- class QDesignerObjectInspectorInterface¶
The
QDesignerObjectInspectorInterfaceclass allows you to change the focus of Qt Widgets Designer’s object inspector.Details
Warning
This section contains snippets that were automatically translated from C++ to Python and may contain errors.
You can use the
QDesignerObjectInspectorInterfaceto change the current form window selection. For example, when implementing a custom widget plugin:objectInspector = formEditor.objectInspector() manager = formEditor.formWindowManager() objectInspector.setFormWindow(manager.formWindow(0))
The
QDesignerObjectInspectorInterfaceclass is not intended to be instantiated directly. You can retrieve an interface to Qt Widgets Designer’s object inspector using theobjectInspector()function. A pointer to Qt Widgets Designer’s currentQDesignerFormEditorInterfaceobject (formEditorin the example above) is provided by theinitialize()function’s parameter. When implementing a custom widget plugin, you must subclass theQDesignerCustomWidgetInterfaceto expose your plugin to Qt Widgets Designer.The interface provides the
core()function that you can use to retrieve a pointer to Qt Widgets Designer’s currentQDesignerFormEditorInterfaceobject, and thesetFormWindow()function that enables you to change the current form window selection.Synopsis¶
Methods¶
def
__init__()
Virtual methods¶
def
core()def
setFormWindow()
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
- __init__(parent[, flags={}])¶
- Parameters:
parent –
QWidgetflags – Combination of
WindowType
Constructs an object inspector interface with the given
parentand the specified windowflags.- core()¶
- Return type:
Returns a pointer to Qt Widgets Designer’s current
QDesignerFormEditorInterfaceobject.- abstract setFormWindow(formWindow)¶
- Parameters:
formWindow –
QDesignerFormWindowInterface
Sets the currently selected form window to
formWindow.