In questa pagina

QDesignerFormEditorInterface Class

La classe QDesignerFormEditorInterface consente di accedere ai vari componenti dell'Qt Widgets Designer. Per saperne di più...

Intestazione: #include <QDesignerFormEditorInterface>
CMake: find_package(Qt6 REQUIRED COMPONENTS Designer)
target_link_libraries(mytarget PRIVATE Qt6::Designer)
qmake: QT += designer
Eredita da: QObject

Funzioni pubbliche

QDesignerFormEditorInterface(QObject *parent = nullptr)
virtual ~QDesignerFormEditorInterface()
QDesignerActionEditorInterface *actionEditor() const
QExtensionManager *extensionManager() const
QDesignerFormWindowManagerInterface *formWindowManager() const
QDesignerObjectInspectorInterface *objectInspector() const
QDesignerPropertyEditorInterface *propertyEditor() const
void setActionEditor(QDesignerActionEditorInterface *actionEditor)
void setObjectInspector(QDesignerObjectInspectorInterface *objectInspector)
void setPropertyEditor(QDesignerPropertyEditorInterface *propertyEditor)
void setWidgetBox(QDesignerWidgetBoxInterface *widgetBox)
QWidget *topLevel() const
QDesignerWidgetBoxInterface *widgetBox() const

Descrizione dettagliata

Qt Widgets DesignerL'oggetto `QDesignerFormEditorInterface` corrente contiene informazioni su tutti i componenti di ` Qt Widgets Designer`: l'editor delle azioni, l'ispettore degli oggetti, l'editor delle proprietà, la casella dei widget e i gestori delle estensioni e delle finestre del modulo. `QDesignerFormEditorInterface` contiene una raccolta di funzioni che forniscono interfacce per tutti questi componenti. Esse vengono tipicamente utilizzate per interrogare (e manipolare) il rispettivo componente. Ad esempio:

        auto *objectInspector = formEditor->objectInspector();
        auto *manager = formEditor->formWindowManager();

        objectInspector->setFormWindow(manager->formWindow(0));

QDesignerFormEditorInterface non è destinato ad essere istanziato direttamente. Un puntatore all’oggetto QDesignerFormEditorInterface corrente di ` Qt Widgets Designer` (formEditor nell’esempio sopra) viene fornito dal parametro della funzione ` QDesignerCustomWidgetInterface::initialize()`. Quando si implementa un plugin per widget personalizzato, è necessario creare una sottoclasse di ` QDesignerCustomWidgetInterface ` per esporre il proprio plugin a ` Qt Widgets Designer`.

QDesignerFormEditorInterface fornisce inoltre funzioni che consentono di impostare l’editor delle azioni, l’editor delle proprietà, l’ispettore degli oggetti e la casella dei widget. Queste sono utili solo se si desidera fornire componenti personalizzati.

Se il designer è integrato in un altro programma, è possibile fornire un proprio gestore delle impostazioni. Il gestore viene utilizzato dai componenti di Qt Widgets Designer per memorizzare/recuperare le impostazioni di configurazione persistenti. Il gestore predefinito utilizza QSettings come backend.

Infine, QDesignerFormEditorInterface fornisce la funzione topLevel() che restituisce il widget di primo livello di Qt Widgets Designer.

Vedi anche QDesignerCustomWidgetInterface.

Documentazione delle funzioni membro

[explicit] QDesignerFormEditorInterface::QDesignerFormEditorInterface(QObject *parent = nullptr)

Crea un oggetto `QDesignerFormEditorInterface` con l'parent` specificato.

[virtual noexcept] QDesignerFormEditorInterface::~QDesignerFormEditorInterface()

Elimina l'oggetto ` QDesignerFormEditorInterface `.

QDesignerActionEditorInterface *QDesignerFormEditorInterface::actionEditor() const

Restituisce un'interfaccia per l'editor delle azioni di Qt Widgets Designer.

Vedi anche setActionEditor().

QExtensionManager *QDesignerFormEditorInterface::extensionManager() const

Restituisce un'interfaccia per il gestore delle estensioni di Qt Widgets Designer.

QDesignerFormWindowManagerInterface *QDesignerFormEditorInterface::formWindowManager() const

Restituisce un'interfaccia per il gestore delle finestre dei moduli di Qt Widgets Designer.

QDesignerObjectInspectorInterface *QDesignerFormEditorInterface::objectInspector() const

Restituisce un'interfaccia per l'ispettore degli oggetti di Qt Widgets Designer.

Vedi anche setObjectInspector().

QDesignerPropertyEditorInterface *QDesignerFormEditorInterface::propertyEditor() const

Restituisce un'interfaccia per l'editor delle proprietà di Qt Widgets Designer.

Vedi anche setPropertyEditor().

void QDesignerFormEditorInterface::setActionEditor(QDesignerActionEditorInterface *actionEditor)

Imposta l’editor delle azioni di Qt Widgets Designer in modo che sia l’ actionEditor specificato.

Vedi anche actionEditor().

void QDesignerFormEditorInterface::setObjectInspector(QDesignerObjectInspectorInterface *objectInspector)

Imposta l'ispettore degli oggetti di Qt Widgets Designer in modo che sia l'objectInspector specificato.

Vedi anche objectInspector().

void QDesignerFormEditorInterface::setPropertyEditor(QDesignerPropertyEditorInterface *propertyEditor)

Imposta l'editor delle proprietà di ` Qt Widgets Designer` in modo che sia il valore specificato ` propertyEditor`.

Vedi anche propertyEditor().

void QDesignerFormEditorInterface::setWidgetBox(QDesignerWidgetBoxInterface *widgetBox)

Imposta la casella dei widget di Qt Widgets Designer in modo che corrisponda a widgetBox.

Vedi anche widgetBox().

QWidget *QDesignerFormEditorInterface::topLevel() const

Restituisce il widget di primo livello di Qt Widgets Designer.

QDesignerWidgetBoxInterface *QDesignerFormEditorInterface::widgetBox() const

Restituisce un'interfaccia per la casella dei widget di Qt Widgets Designer.

Vedi anche setWidgetBox().

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.