QAccessibleStateChangeEvent Class
El QAccessibleStateChangeEvent notifica al framework de accesibilidad que el estado de un objeto ha cambiado. Más...
| Cabecera: | #include <QAccessibleStateChangeEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui)target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Hereda: | QAccessibleEvent |
- Lista de todos los miembros, incluidos los heredados
- QAccessibleStateChangeEvent es parte de Clases de Accesibilidad.
Funciones Públicas
| QAccessibleStateChangeEvent(QAccessibleInterface *iface, QAccessible::State state) | |
| QAccessibleStateChangeEvent(QObject *object, QAccessible::State state) | |
| QAccessible::State | changedStates() const |
Descripción detallada
Esta clase se utiliza con QAccessible::updateAccessibility().
Véase también QAccessibleInterface::state().
Documentación de las funciones miembro
QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QAccessibleInterface *iface, QAccessible::State state)
Construye un nuevo QAccessibleStateChangeEvent. iface es la interfaz asociada al evento state es el estado del objeto accesible.
QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QObject *object, QAccessible::State state)
Construye un nuevo QAccessibleStateChangeEvent para object. La diferencia con el estado anterior del objeto se encuentra en state.
QAccessible::State QAccessibleStateChangeEvent::changedStates() const
Devuelve los estados que se han modificado.
Tenga en cuenta que los estados devueltos son los que han cambiado. Para conocer el estado de un objeto, utiliza QAccessibleInterface::state().
Por ejemplo, si un objeto solía tener el foco pero lo pierde, el estado del objeto tendrá focused establecido a false. Este evento por otro lado informa sobre el cambio y tiene focused establecido a true ya que el estado del foco ha cambiado de true a false.
© 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.