このページでは

QAccessibleStateChangeEvent Class

QAccessibleStateChangeEvent は、オブジェクトの状態が変更されたことをアクセシビリティフレームワークに通知します。詳細...

ヘッダー: #include <QAccessibleStateChangeEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
継承元: QAccessibleEvent

パブリック関数

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 ` に設定されます。

© 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.