PySide6.QtGui.QAccessibleEvent¶
- class QAccessibleEvent¶
The
QAccessibleEventclass is the base class for accessibility notifications.Details
Warning
This section contains snippets that were automatically translated from C++ to Python and may contain errors.
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 QWidget::setFocus, the event could be used as follows:
def setFocus(self, reason): # handle custom focus setting... event = QAccessibleEvent(f, QAccessible.Focus) QAccessible.updateAccessibility(event)
To enable in process screen readers, all events must be sent after the change has happened.
Inherited by:
QAccessibleValueChangeEvent,QAccessibleTextCursorEvent,QAccessibleTextUpdateEvent,QAccessibleTextSelectionEvent,QAccessibleTextRemoveEvent,QAccessibleTextInsertEvent,QAccessibleTableModelChangeEvent,QAccessibleStateChangeEvent,QAccessibleAnnouncementEventSynopsis¶
Methods¶
def
__init__()def
child()def
object()def
setChild()def
type()def
uniqueId()
Virtual methods¶
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- __init__(iface, typ)¶
- Parameters:
iface –
QAccessibleInterfacetyp –
Event
Constructs a
QAccessibleEventto notify thatinterfacehas changed. The eventtypedescribes what changed. Use this function if you already have aQAccessibleInterfaceor no QObject, otherwise consider the overload taking a QObject parameter as it might be cheaper.Constructs a
QAccessibleEventto notify thatobjecthas changed. The eventtypedescribes what changed.- accessibleInterface()¶
- Return type:
Returns the
QAccessibleInterfaceassociated with the event.- child()¶
- Return type:
int
Returns the child index.
See also
Returns the event object.
- setChild(chld)¶
- Parameters:
chld – int
Sets the child index to
child.See also
Returns the event type.
- uniqueId()¶
- Return type:
int