QAccessibleEvent¶
The
QAccessibleEventclass is the base class for accessibility notifications. More…

Inherited by: QAccessibleStateChangeEvent, QAccessibleTableModelChangeEvent, QAccessibleTextCursorEvent, QAccessibleTextInsertEvent, QAccessibleTextRemoveEvent, QAccessibleTextSelectionEvent, QAccessibleTextUpdateEvent, QAccessibleValueChangeEvent
Synopsis¶
Functions¶
Virtual functions¶
def
accessibleInterface()
Detailed Description¶
This class is used with
updateAccessibility().The event type is one of the values of
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
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.
- class PySide2.QtGui.QAccessibleEvent(iface, typ)¶
PySide2.QtGui.QAccessibleEvent(obj, typ)
- param iface:
- param typ:
- param obj:
Constructs a
QAccessibleEventto notify thatinterfacehas changed. The eventtypedescribes what changed. Use this function if you already have aQAccessibleInterfaceor noQObject, otherwise consider the overload taking aQObjectparameter as it might be cheaper.Constructs a
QAccessibleEventto notify thatobjecthas changed. The eventtypedescribes what changed.
- PySide2.QtGui.QAccessibleEvent.accessibleInterface()¶
- Return type:
Returns the
QAccessibleInterfaceassociated with the event.
- PySide2.QtGui.QAccessibleEvent.child()¶
- Return type:
int
Returns the child index.
See also
- PySide2.QtGui.QAccessibleEvent.object()¶
- Return type:
Returns the event object.
- PySide2.QtGui.QAccessibleEvent.setChild(chld)¶
- Parameters:
chld – int
Sets the child index to
child.See also
- PySide2.QtGui.QAccessibleEvent.uniqueId()¶
- Return type:
int
Returns the uniqueId of the
QAccessibleInterfacerepresented by this event.In case the
object()function returnsNone, this is the only way to access the interface.
© 2022 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.