QAccessibleStateChangeEvent Class
QAccessibleStateChangeEvent 通知辅助功能框架对象的状态已发生变化。更多
头文件: | #include <QAccessibleStateChangeEvent> |
CMake.QAccessibleStateChangeEvent | 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
。另一方面,该事件会告知焦点的变化,并将 focused 设置为true
,因为焦点状态已从true
变为false
。
© 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.