QDesignerActionEditorInterface Class
QDesignerActionEditorInterface 类允许您更改Qt Widgets Designer 的动作编辑器的焦点。更多内容...
| 标题: | #include <QDesignerActionEditorInterface> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Designer) target_link_libraries(mytarget PRIVATE Qt6::Designer) |
| qmake: | QT += designer |
| 继承自: | QWidget |
公共函数
| 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 |
公共槽
| virtual void | setFormWindow(QDesignerFormWindowInterface *formWindow) = 0 |
详细说明
QDesignerActionEditorInterface 类不适用于直接实例化。您可以使用QDesignerFormEditorInterface::actionEditor() 函数获取Qt Widgets Designer 中的操作编辑器的接口。
您可以使用manageAction() 和unmanageAction() 函数控制操作编辑器窗口中可用的操作。由Qt Widgets Designer 管理的操作可在操作编辑器中使用,而未管理的操作则会被忽略。
QDesignerActionEditorInterface 还提供了core() 函数,可用于获取Qt Widgets Designer 当前QDesignerFormEditorInterface 对象的指针;以及setFormWindow() 函数,可用于更改当前选中的表单窗口。
另请参阅 QDesignerFormEditorInterface 和QDesignerFormWindowInterface 。
成员函数文档
[explicit] QDesignerActionEditorInterface::QDesignerActionEditorInterface(QWidget *parent, Qt::WindowFlags flags = {})
根据给定的parent 和指定的窗口flags ,构建一个操作编辑器界面。
[override virtual noexcept] QDesignerActionEditorInterface::~QDesignerActionEditorInterface()
关闭动作编辑器界面。
[virtual] QDesignerFormEditorInterface *QDesignerActionEditorInterface::core() const
返回指向Qt Widgets Designer 当前QDesignerFormEditorInterface 对象的指针。
[pure virtual] void QDesignerActionEditorInterface::manageAction(QAction *action)
指示Qt Widgets Designer 管理指定的action 。由Qt Widgets Designer 管理的操作可在操作编辑器中使用。
另请参阅 unmanageAction()。
[pure virtual slot] void QDesignerActionEditorInterface::setFormWindow(QDesignerFormWindowInterface *formWindow)
将当前选中的表单窗口设置为formWindow 。
[pure virtual] void QDesignerActionEditorInterface::unmanageAction(QAction *action)
指示Qt Widgets Designer 忽略指定的action 。非托管操作在操作编辑器中不可用。
另请参阅 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.