The QDesignerObjectInspectorInterface class allows you to change the focus of Qt Widgets Designer's object inspector. More...
| Header: | #include <QDesignerObjectInspectorInterface> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Designer)target_link_libraries(mytarget PRIVATE Qt6::Designer) |
| qmake: | QT += designer |
| Inherits: | QWidget |
| QDesignerObjectInspectorInterface(QWidget *parent, Qt::WindowFlags flags = {}) | |
| virtual | ~QDesignerObjectInspectorInterface() |
| virtual QDesignerFormEditorInterface * | core() const |
| virtual void | setFormWindow(QDesignerFormWindowInterface *formWindow) = 0 |
You can use the QDesignerObjectInspectorInterface to change the current form window selection. For example, when implementing a custom widget plugin:
auto *objectInspector = formEditor->objectInspector(); auto *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 Widgets Designer's object inspector using the QDesignerFormEditorInterface::objectInspector() function. A pointer to Qt Widgets Designer's current QDesignerFormEditorInterface object (formEditor in the 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 Widgets Designer.
The interface provides the core() function that you can use to retrieve a pointer to Qt Widgets Designer's current QDesignerFormEditorInterface object, and the setFormWindow() function that enables you to change the current form window selection.
See also QDesignerFormEditorInterface and QDesignerFormWindowInterface.
[explicit] QDesignerObjectInspectorInterface::QDesignerObjectInspectorInterface(QWidget *parent, Qt::WindowFlags
flags = {})Constructs an object inspector interface with the given parent and the specified window flags.
[virtual noexcept] QDesignerObjectInspectorInterface::~QDesignerObjectInspectorInterface()Destroys the object inspector interface.
[virtual] QDesignerFormEditorInterface
*QDesignerObjectInspectorInterface::core() constReturns a pointer to Qt Widgets Designer's current QDesignerFormEditorInterface object.
[pure virtual slot] void QDesignerObjectInspectorInterface::setFormWindow(QDesignerFormWindowInterface *formWindow)Sets the currently selected form window to formWindow.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: