QAccessiblePlugin Class
QAccessiblePlugin クラスは、ユーザーインターフェース要素のアクセシビリティ情報を提供するプラグインのための抽象基底クラスを提供します。詳細...
| ヘッダー: | #include <QAccessiblePlugin> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| 継承元: | QObject |
- 継承されたメンバーを含むすべてのメンバーの一覧
- QAccessiblePlugin は、プラグインクラスおよびアクセシビリティクラスの一部です。
パブリック関数
| QAccessiblePlugin(QObject *parent = nullptr) | |
| virtual | ~QAccessiblePlugin() |
| virtual QAccessibleInterface * | create(const QString &key, QObject *object) = 0 |
詳細な説明
アクセシビリティプラグインの作成は、この基底クラスをサブクラス化し、純粋仮想関数 `create()` を再実装し、`Q_PLUGIN_METADATA()` マクロを使用してクラスをエクスポートすることで実現されます。
「Qt プラグインの作成方法」も参照してください 。
メンバ関数のドキュメント
[explicit] QAccessiblePlugin::QAccessiblePlugin(QObject *parent = nullptr)
指定されたparent を使用して、アクセシビリティプラグインを構築します。これはプラグインローダーによって自動的に呼び出されます。
[virtual noexcept] QAccessiblePlugin::~QAccessiblePlugin()
アクセシビリティプラグインを破棄します。
これを明示的に呼び出す必要は一切ありません。Qtは、プラグインが使用されなくなった時点で自動的に破棄します。
[pure virtual] QAccessibleInterface *QAccessiblePlugin::create(const QString &key, QObject *object)
クラス `key ` およびオブジェクト `object` に対する `QAccessibleInterface ` の実装を作成して返します。キーは大文字と小文字が区別されます。
© 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.