QAccessibleAttributesInterface Class
QAccessibleAttributesInterface クラスは、アクセシブルなオブジェクトの属性を報告するための機能を実装しています。詳細...
| ヘッダー: | #include <QAccessibleAttributesInterface> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| 以下のように: | Qt 6.8 |
- 継承されたメンバーを含むすべてのメンバーの一覧
- QAccessibleAttributesInterfaceは、アクセシビリティクラス群の一部です。
パブリック関数
| QAccessibleAttributesInterface() | |
| virtual | ~QAccessibleAttributesInterface() |
| virtual QList<QAccessible::Attribute> | attributeKeys() const = 0 |
| virtual QVariant | attributeValue(QAccessible::Attribute key) const = 0 |
詳細な説明
属性はキーと値のペアです。値は `QVariant` に格納されます。
QAccessible::Attribute 列挙型は、使用可能なキーと、各キーの値に使用する型を記述します。
QAccessibleTextInterface::attributes が扱うテキスト固有の属性は、テキストを実装するオブジェクトに固有であり、特定のテキストの位置/オフセットに固有のものですが、QAccessibleAttributesInterface が扱う属性は、あらゆる役割のオブジェクトに使用でき、オブジェクト全体に適用されます。
テキスト固有の属性に対してすでにQAccessibleTextInterface を実装しているクラスは、オブジェクト固有の属性に対しても、QAccessibleAttributesInterface を追加で実装することを検討するとよいでしょう。
メンバ関数のドキュメント
[constexpr noexcept default] QAccessibleAttributesInterface::QAccessibleAttributesInterface()
QAccessibleAttributesInterface のインスタンスをデフォルトコンストラクタで生成します。
[virtual noexcept] QAccessibleAttributesInterface::~QAccessibleAttributesInterface()
QAccessibleAttributesInterface を削除します。
[pure virtual] QList<QAccessible::Attribute> QAccessibleAttributesInterface::attributeKeys() const
オブジェクトがサポートするすべての属性のキーを返します。利用可能なキーについては、QAccessible::Attribute 列挙型で説明されています。
[pure virtual] QVariant QAccessibleAttributesInterface::attributeValue(QAccessible::Attribute key) const
このオブジェクトの属性「key 」の値を返します。
このオブジェクトに対してこの属性が設定されている場合、QAccessible::Attribute 列挙型のドキュメントで指定されたキーに対応する型の値が、QVariant として返されます。
そうでない場合は、無効な `QVariant ` が返されます。
© 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.