QAccessibleEvent Class
QAccessibleEventクラスは、アクセシビリティ通知の基本クラスです。詳細...
ヘッダー | #include <QAccessibleEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
によって継承されます: | QAccessibleAnnouncementEvent,QAccessibleStateChangeEvent,QAccessibleTableModelChangeEvent,QAccessibleTextCursorEvent, およびQAccessibleValueChangeEvent |
- 継承メンバを含む全メンバ一覧
- QAccessibleEventはアクセシビリティクラスの一部です。
パブリック関数
QAccessibleEvent(QAccessibleInterface *interface, QAccessible::Event type) | |
QAccessibleEvent(QObject *object, QAccessible::Event type) | |
virtual | ~QAccessibleEvent() |
virtual QAccessibleInterface * | accessibleInterface() const |
int | child() const |
QObject * | object() const |
void | setChild(int child) |
QAccessible::Event | type() const |
詳細説明
このクラスはQAccessible::updateAccessibility() と共に使用されます。
イベント・タイプは、QAccessible::Event の値の1つです。イベントの詳細を提供するために使用されるべきサブクラスがいくつかあります。
例えば、QWidget::setFocus を再実装するとき、フォーカスの変更について通知するために、イベントは以下のように使用できる:
void MyWidget::setFocus(Qt::FocusReason reason) { // handle custom focus setting... QAccessibleEvent event(f, QAccessible::Focus); QAccessible::updateAccessibility(&event); }
処理中のスクリーン・リーダーを有効にするには、すべてのイベントは変更が起こった後に送信されなければならない。
メンバ関数ドキュメント
QAccessibleEvent::QAccessibleEvent(QAccessibleInterface *interface, QAccessible::Event type)
interface が変更されたことを通知する QAccessibleEvent を構築します。イベントtype には、何が変更されたかが記述されています。すでにQAccessibleInterface を持っているか、QObject を持っていない場合は、この関数を使用してください。そうでない場合は、QObject パラメータを取るオーバーロードを検討してください。
QAccessibleEvent::QAccessibleEvent(QObject *object, QAccessible::Event type)
object が変更されたことを通知する QAccessibleEvent を構築します。イベントtype には、何が変更されたかが記述されています。
[virtual noexcept]
QAccessibleEvent::~QAccessibleEvent()
イベントを破壊する。
[virtual]
QAccessibleInterface *QAccessibleEvent::accessibleInterface() const
イベントに関連付けられたQAccessibleInterface を返します。
int QAccessibleEvent::child() const
子インデックスを返します。
setChild()も参照ください 。
QObject *QAccessibleEvent::object() const
イベントオブジェクトを返します。
void QAccessibleEvent::setChild(int child)
子インデックスをchild に設定する。
child()も参照のこと 。
QAccessible::Event QAccessibleEvent::type() const
イベントタイプを返します。
© 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.