QDesignerActionEditorInterface Class
A classe QDesignerActionEditorInterface permite alterar o foco do editor de ações d Qt Widgets Designer. Mais...
| Cabeçalho: | #include <QDesignerActionEditorInterface> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Designer) target_link_libraries(mytarget PRIVATE Qt6::Designer) |
| qmake: | QT += designer |
| Herdado de: | QWidget |
Funções públicas
| 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 |
Slots públicos
| virtual void | setFormWindow(QDesignerFormWindowInterface *formWindow) = 0 |
Descrição detalhada
A classe `QDesignerActionEditorInterface` não se destina a ser instanciada diretamente. É possível obter uma interface para o editor de ações d Qt Widgets Designer` utilizando a função ` QDesignerFormEditorInterface::actionEditor()`.
É possível controlar quais ações estão disponíveis na janela do editor de ações usando as funções ` manageAction()` e ` unmanageAction()`. Uma ação gerenciada por ` Qt Widgets Designer ` fica disponível no editor de ações, enquanto uma ação não gerenciada é ignorada.
A interface `QDesignerActionEditorInterface` também fornece a função ` core()`, que você pode usar para recuperar um ponteiro para o objeto ` QDesignerFormEditorInterface ` atual de ` Qt Widgets Designer`, e a função ` setFormWindow()`, que permite alterar a janela de formulário selecionada no momento.
Consulte também QDesignerFormEditorInterface e QDesignerFormWindowInterface.
Documentação das funções de membro
[explicit] QDesignerActionEditorInterface::QDesignerActionEditorInterface(QWidget *parent, Qt::WindowFlags flags = {})
Cria uma interface de editor de ações com o ` parent ` fornecido e a janela especificada ` flags`.
[override virtual noexcept] QDesignerActionEditorInterface::~QDesignerActionEditorInterface()
Fecha a interface do editor de ações.
[virtual] QDesignerFormEditorInterface *QDesignerActionEditorInterface::core() const
Retorna um ponteiro para o objeto ` QDesignerFormEditorInterface ` atual de ` Qt Widgets Designer`.
[pure virtual] void QDesignerActionEditorInterface::manageAction(QAction *action)
Instrui o Qt Widgets Designer a gerenciar o action especificado. Uma ação gerenciada pelo Qt Widgets Designer fica disponível no editor de ações.
Veja também unmanageAction().
[pure virtual slot] void QDesignerActionEditorInterface::setFormWindow(QDesignerFormWindowInterface *formWindow)
Define a janela do formulário selecionada no momento como “ formWindow ”.
[pure virtual] void QDesignerActionEditorInterface::unmanageAction(QAction *action)
Instrui o Qt Widgets Designer a ignorar o action especificado. Uma ação não gerenciada não está disponível no editor de ações.
Veja também 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.