QAccessibleStateChangeEvent Class
QAccessibleStateChangeEvent は、オブジェクトの状態が変更されたことをアクセシビリティフレームワークに通知します。詳細...
ヘッダー | #include <QAccessibleStateChangeEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
継承: | QAccessibleEvent |
- 継承されたメンバを含む、すべてのメンバのリスト
- QAccessibleStateChangeEventはアクセシビリティクラスの一部です。
パブリック関数
QAccessibleStateChangeEvent(QAccessibleInterface *iface, QAccessible::State state) | |
QAccessibleStateChangeEvent(QObject *object, QAccessible::State state) | |
QAccessible::State | changedStates() const |
詳細説明
このクラスはQAccessible::updateAccessibility() と共に使用されます。
QAccessibleInterface::state()も参照してください 。
メンバ関数ドキュメント
QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QAccessibleInterface *iface, QAccessible::State state)
新しい QAccessibleStateChangeEvent を構築します。iface は、イベントに関連付けられているインターフェイスです。state は、アクセス可能なオブジェクトの状態です。
QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QObject *object, QAccessible::State state)
object の新しい QAccessibleStateChangeEvent を構築します。オブジェクトの以前の状態との違いはstate にあります。
QAccessible::State QAccessibleStateChangeEvent::changedStates() const
変更された状態を返す。
返される状態は、変更されたものであることに注意してください。オブジェクトの状態を知るには、QAccessibleInterface::state ()を使います。
例えば、あるオブジェクトがフォーカスを持っていたのにそれを失った場合、そのオブジェクトの状態はfocusedがfalse
に設定されます。一方、このイベントはその変更について伝え、フォーカス状態がtrue
からfalse
に変更されたため、focusedがtrue
に設定されます。
© 2025 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.