QDesignerActionEditorInterface Class
La classe `QDesignerActionEditorInterface` vous permet de modifier l'élément actif de l'éditeur d'actions d'Qt Widgets. En savoir plus...
| En-tête : | #include <QDesignerActionEditorInterface> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Designer) target_link_libraries(mytarget PRIVATE Qt6::Designer) |
| qmake : | QT += designer |
| Hérite de : | 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 |
Slots 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 vers l'éditeur d'actions d'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 le Designer d’ Qt Widgets est disponible dans l’éditeur d’actions, tandis qu’une action non gérée est ignorée.
QDesignerActionEditorInterface fournit également la fonction core() qui vous permet de récupérer un pointeur vers l’objet QDesignerFormEditorInterface actuel de Qt Widgets Designer, ainsi que la fonction setFormWindow() qui vous permet de modifier la fenêtre de formulaire actuellement sélectionnée.
Voir également QDesignerFormEditorInterface et QDesignerFormWindowInterface.
Documentation sur les fonctions membres
[explicit] QDesignerActionEditorInterface::QDesignerActionEditorInterface(QWidget *parent, Qt::WindowFlags flags = {})
Crée une interface d'éditeur d'actions avec l'parent on fournie et la fenêtre spécifiée flags.
[override virtual noexcept] QDesignerActionEditorInterface::~QDesignerActionEditorInterface()
Ferme l'interface de l'éditeur d'actions.
[virtual] QDesignerFormEditorInterface *QDesignerActionEditorInterface::core() const
Qt Widgets Renvoie un pointeur vers l'objet « QDesignerFormEditorInterface » ( ) actuel du Designer.
[pure virtual] void QDesignerActionEditorInterface::manageAction(QAction *action)
Demande à Designer d'Qt Widgets de gérer l'action spécifiée. Une action gérée par Designer d'Qt Widgets est disponible dans l'éditeur d'actions.
Voir également unmanageAction().
[pure virtual slot] void QDesignerActionEditorInterface::setFormWindow(QDesignerFormWindowInterface *formWindow)
Définit la fenêtre du formulaire actuellement sélectionnée sur « formWindow ».
[pure virtual] void QDesignerActionEditorInterface::unmanageAction(QAction *action)
Indique à Qt Widgets Designer d'ignorer l'action spécifiée. Une action non gérée n'est pas disponible dans l'éditeur d'actions.
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.