The QAccessibleEvent class is the base class for accessibility notifications. More...
Header: | #include <QAccessibleEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
Inherited By: |
QAccessibleStateChangeEvent, QAccessibleTableModelChangeEvent, QAccessibleTextCursorEvent, and QAccessibleValueChangeEvent |
QAccessibleEvent(QAccessibleInterface *interface, QAccessible::Event type) | |
QAccessibleEvent(QObject *object, QAccessible::Event type) | |
virtual | ~QAccessibleEvent() |
virtual QAccessibleInterface * | accessibleInterface() const |
int | child() const |
QObject * | object() const |
void | setChild(int child) |
QAccessible::Event | type() const |
This class is used with QAccessible::updateAccessibility().
The event type is one of the values of QAccessible::Event. There are a number of subclasses that should be used to provide more details about the event.
For example to notify about a focus change when re-implementing QWidget::setFocus, the event could be used as follows:
void MyWidget::setFocus(Qt::FocusReason reason) { // handle custom focus setting... QAccessibleEvent event(f, QAccessible::Focus); QAccessible::updateAccessibility(&event); }
To enable in process screen readers, all events must be sent after the change has happened.
Constructs a QAccessibleEvent to notify that interface has changed. The event type describes what changed. Use this function if you already have a QAccessibleInterface or no QObject, otherwise consider the overload taking a QObject parameter as it might be cheaper.
Constructs a QAccessibleEvent to notify that object has changed. The event type describes what changed.
[virtual]
QAccessibleEvent::~QAccessibleEvent()Destroys the event.
[virtual]
QAccessibleInterface *QAccessibleEvent::accessibleInterface()
constReturns the QAccessibleInterface associated with the event.
Returns the child index.
See also setChild().
Returns the event object.
Sets the child index to child.
See also child().
Returns the event type.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: