In questa pagina

QDesignerActionEditorInterface Class

La classe `QDesignerActionEditorInterface` consente di modificare il focus dell'editor delle azioni di ` Qt Widgets Designer`. Per saperne di più...

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

Funzioni pubbliche

QDesignerActionEditorInterface(QWidget *parent, Qt::WindowFlags flags = {})
virtual ~QDesignerActionEditorInterface() override
virtual QDesignerFormEditorInterface *core() const
virtual void manageAction(QAction *action) = 0
virtual void unmanageAction(QAction *action) = 0

Slot pubblici

virtual void setFormWindow(QDesignerFormWindowInterface *formWindow) = 0

Descrizione dettagliata

La classe QDesignerActionEditorInterface non è destinata ad essere istanziata direttamente. È possibile recuperare un'interfaccia per l'editor delle azioni di Qt Widgets Designer utilizzando la funzione QDesignerFormEditorInterface::actionEditor().

È possibile controllare quali azioni sono disponibili nella finestra dell'editor delle azioni utilizzando le funzioni manageAction() e unmanageAction(). Un'azione gestita d Qt Widgets Designer è disponibile nell'editor delle azioni, mentre un'azione non gestita viene ignorata.

QDesignerActionEditorInterface fornisce anche la funzione core(), che è possibile utilizzare per recuperare un puntatore all’oggetto QDesignerFormEditorInterface corrente di Qt Widgets Designer, e la funzione setFormWindow(), che consente di modificare la finestra del modulo attualmente selezionata.

Vedere anche QDesignerFormEditorInterface e QDesignerFormWindowInterface.

Documentazione sulle funzioni membro

[explicit] QDesignerActionEditorInterface::QDesignerActionEditorInterface(QWidget *parent, Qt::WindowFlags flags = {})

Crea un'interfaccia dell'editor delle azioni con l'parent e specificato e la finestra flags.

[override virtual noexcept] QDesignerActionEditorInterface::~QDesignerActionEditorInterface()

Chiude l'interfaccia dell'editor delle azioni.

[virtual] QDesignerFormEditorInterface *QDesignerActionEditorInterface::core() const

Restituisce un puntatore all'oggetto ` QDesignerFormEditorInterface ` corrente di ` Qt Widgets Designer`.

[pure virtual] void QDesignerActionEditorInterface::manageAction(QAction *action)

Indica a Qt Widgets Designer di gestire l'action specificato. Un'azione gestita da Qt Widgets Designer è disponibile nell'editor delle azioni.

Vedi anche unmanageAction().

[pure virtual slot] void QDesignerActionEditorInterface::setFormWindow(QDesignerFormWindowInterface *formWindow)

Imposta la finestra del modulo attualmente selezionata su formWindow.

[pure virtual] void QDesignerActionEditorInterface::unmanageAction(QAction *action)

Indica a Qt Widgets Designer di ignorare l'action specificato. Un'azione non gestita non è disponibile nell'editor delle azioni.

Vedi anche manageAction().

© 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.