QAccessibleStateChangeEvent Class
El evento `QAccessibleStateChangeEvent` notifica al marco de accesibilidad que el estado de un objeto ha cambiado. Más información...
| Encabezado: | #include <QAccessibleStateChangeEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Heredan: | QAccessibleEvent |
- Lista de todos los miembros, incluidos los heredados
- QAccessibleStateChangeEvent forma parte de las 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 de miembro
QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QAccessibleInterface *iface, QAccessible::State state)
Crea un nuevo objeto `QAccessibleStateChangeEvent`. ` iface ` es la interfaz asociada al evento y ` state ` es el estado del objeto accesible.
QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QObject *object, QAccessible::State state)
Crea un nuevo objeto `QAccessibleStateChangeEvent` para ` object`. La diferencia con respecto al estado anterior del objeto se encuentra en ` state`.
QAccessible::State QAccessibleStateChangeEvent::changedStates() const
Devuelve los estados que han cambiado.
Ten en cuenta que los estados devueltos son aquellos que han cambiado. Para conocer el estado de un objeto, utiliza QAccessibleInterface::state().
Por ejemplo, si un objeto tenía el foco pero lo pierde, el estado «focused» del objeto tendrá el valor « false ». Este evento, por su parte, informa del cambio y tiene el valor «focused» establecido en « 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.