QDesignerActionEditorInterface Class
La classe QDesignerActionEditorInterface vous permet de changer le focus de l'éditeur d'actions de Qt Widgets Designer. Plus d'informations...
| En-tête : | #include <QDesignerActionEditorInterface> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Designer)target_link_libraries(mytarget PRIVATE Qt6::Designer) |
| qmake : | QT += designer |
| Héritages : | QWidget |
Fonctions publiques
| 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 |
Emplacements publics
| virtual void | setFormWindow(QDesignerFormWindowInterface *formWindow) = 0 |
Description détaillée
La classe QDesignerActionEditorInterface n'est pas destinée à être instanciée directement. Vous pouvez récupérer une interface de l'éditeur d'actions de Qt Widgets Designer à l'aide de la fonction QDesignerFormEditorInterface::actionEditor().
Vous pouvez contrôler les actions disponibles dans la fenêtre de l'éditeur d'actions à l'aide des fonctions manageAction() et unmanageAction(). Une action gérée par Qt Widgets Designer est disponible dans l'éditeur d'actions, tandis qu'une action non gérée est ignorée.
QDesignerActionEditorInterface fournit également la fonction core() que vous pouvez utiliser pour récupérer un pointeur sur l'objet QDesignerFormEditorInterface actuel de Qt Widgets Designer et la fonction setFormWindow() qui vous permet de modifier la fenêtre de formulaire actuellement sélectionnée.
Voir également QDesignerFormEditorInterface et QDesignerFormWindowInterface.
Documentation des fonctions membres
[explicit] QDesignerActionEditorInterface::QDesignerActionEditorInterface(QWidget *parent, Qt::WindowFlags flags = {})
Construit une interface d'éditeur d'actions avec le site parent donné et la fenêtre spécifiée flags.
[override virtual noexcept] QDesignerActionEditorInterface::~QDesignerActionEditorInterface()
Détruit l'interface de l'éditeur d'actions.
[virtual] QDesignerFormEditorInterface *QDesignerActionEditorInterface::core() const
Renvoie un pointeur sur l'objet Qt Widgets Designer's courant QDesignerFormEditorInterface.
[pure virtual] void QDesignerActionEditorInterface::manageAction(QAction *action)
Demande à Qt Widgets Designer de gérer l'action spécifiée action. Une action gérée par Qt Widgets Designer est disponible dans l'éditeur d'actions.
Voir aussi unmanageAction().
[pure virtual slot] void QDesignerActionEditorInterface::setFormWindow(QDesignerFormWindowInterface *formWindow)
Définit la fenêtre de formulaire actuellement sélectionnée sur formWindow.
[pure virtual] void QDesignerActionEditorInterface::unmanageAction(QAction *action)
Indique à Qt Widgets Designer d'ignorer l'adresse action spécifiée. Une action non gérée n'est pas disponible dans l'éditeur d'action.
Voir également 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.