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.