QAccessibleStateChangeEvent Class
L'evento QAccessibleStateChangeEvent segnala al framework di accessibilità che lo stato di un oggetto è cambiato. Per saperne di più...
| Intestazione: | #include <QAccessibleStateChangeEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Eredita da: | QAccessibleEvent |
- Elenco di tutti i membri, compresi quelli ereditati
- QAccessibleStateChangeEvent fa parte delle classi di accessibilità.
Funzioni pubbliche
| QAccessibleStateChangeEvent(QAccessibleInterface *iface, QAccessible::State state) | |
| QAccessibleStateChangeEvent(QObject *object, QAccessible::State state) | |
| QAccessible::State | changedStates() const |
Descrizione dettagliata
Questa classe viene utilizzata con QAccessible::updateAccessibility().
Vedi anche QAccessibleInterface::state().
Documentazione sulle funzioni membro
QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QAccessibleInterface *iface, QAccessible::State state)
Crea un nuovo oggetto `QAccessibleStateChangeEvent`. ` iface ` è l'interfaccia associata all'evento, mentre ` state ` è lo stato dell'oggetto accessibile.
QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QObject *object, QAccessible::State state)
Crea un nuovo oggetto `QAccessibleStateChangeEvent` per ` object`. La differenza rispetto allo stato precedente dell'oggetto è contenuta in ` state`.
QAccessible::State QAccessibleStateChangeEvent::changedStates() const
Restituisce gli stati che sono stati modificati.
Si tenga presente che gli stati restituiti sono quelli che sono stati modificati. Per conoscere lo stato di un oggetto, utilizzare QAccessibleInterface::state().
Ad esempio, se un oggetto aveva il focus ma lo ha perso, lo stato dell'oggetto avrà il parametro `focused` impostato su ` false`. Questo evento, invece, segnala la modifica e ha il parametro `focused` impostato su ` true `, poiché lo stato del focus è cambiato da ` 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.