QAccessibleStateChangeEvent Class
The QAccessibleStateChangeEvent notfies the accessibility framework that the state of an object has changed. More...
Header: | #include <QAccessibleStateChangeEvent> |
qmake: | QT += gui |
Inherits: | QAccessibleEvent. |
Public Functions
QAccessibleStateChangeEvent(QObject * object, QAccessible::State state) | |
QAccessibleStateChangeEvent(QAccessibleInterface * iface, QAccessible::State state) | |
QAccessible::State | changedStates() const |
- 5 public functions inherited from QAccessibleEvent
Detailed Description
The QAccessibleStateChangeEvent notfies the accessibility framework that the state of an object has changed.
This class is used with QAccessible::updateAccessibility().
See also QAccessibleInterface::state().
Member Function Documentation
QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QObject * object, QAccessible::State state)
Constructs a new QAccessibleStateChangeEvent for object. The difference to the object's previous state is in state.
QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QAccessibleInterface * iface, QAccessible::State state)
QAccessible::State QAccessibleStateChangeEvent::changedStates() const
Returns the states that have been changed.
Be aware that the returned states are the ones that have changed, to find out about the state of an object, use QAccessibleInterface::state().
For example, if an object used to have the focus but loses it, the object's state will have focused set to false
. This event on the other hand tells about the change and has focused set to true
since the focus state is changed from true
to false
.
© 2015 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.