QDesignerObjectInspectorInterface#
The QDesignerObjectInspectorInterface
class allows you to change the focus of Qt Designer’s object inspector. More…
Synopsis#
Virtual functions#
def
core
()def
setFormWindow
(formWindow)
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.
You can use the QDesignerObjectInspectorInterface
to 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 QDesignerObjectInspectorInterface
class is not intended to be instantiated directly. You can retrieve an interface to Qt Designer's object inspector using the objectInspector()
function. 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.
The interface provides the core()
function that you can use to retrieve a pointer to Qt Designer's current QDesignerFormEditorInterface
object, and the setFormWindow()
function that enables you to change the current form window selection.
- class PySide6.QtDesigner.QDesignerObjectInspectorInterface(parent[, flags={}])#
- Parameters:
flags –
WindowFlags
parent –
PySide6.QtWidgets.QWidget
Constructs an object inspector interface with the given parent
and the specified window flags
.
- PySide6.QtDesigner.QDesignerObjectInspectorInterface.core()#
- Return type:
Returns a pointer to Qt Designer's current QDesignerFormEditorInterface
object.
- abstract PySide6.QtDesigner.QDesignerObjectInspectorInterface.setFormWindow(formWindow)#
- Parameters:
formWindow –
PySide6.QtDesigner.QDesignerFormWindowInterface
Sets the currently selected form window to formWindow
.