QAccessibleEvent

The QAccessibleEvent class is the base class for accessibility notifications. More

Inheritance diagram of PySide2.QtGui.QAccessibleEvent

Inherited by: QAccessibleStateChangeEvent, QAccessibleTableModelChangeEvent, QAccessibleTextCursorEvent, QAccessibleTextInsertEvent, QAccessibleTextRemoveEvent, QAccessibleTextSelectionEvent, QAccessibleTextUpdateEvent, QAccessibleValueChangeEvent

Synopsis

Functions

Virtual functions

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

PySide2.QtGui.QAccessibleInterface

param typ

Event

param obj

PySide2.QtCore.QObject

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.

PySide2.QtGui.QAccessibleEvent.accessibleInterface()
Return type

PySide2.QtGui.QAccessibleInterface

Returns the QAccessibleInterface associated with the event.

PySide2.QtGui.QAccessibleEvent.child()
Return type

int

Returns the child index.

See also

setChild()

PySide2.QtGui.QAccessibleEvent.object()
Return type

PySide2.QtCore.QObject

Returns the event object.

PySide2.QtGui.QAccessibleEvent.setChild(chld)
Parameters

chld – int

Sets the child index to child .

See also

child()

PySide2.QtGui.QAccessibleEvent.type()
Return type

Event

Returns the event type.

PySide2.QtGui.QAccessibleEvent.uniqueId()
Return type

int

Returns the uniqueId of the QAccessibleInterface represented by this event.

In case the object() function returns None , this is the only way to access the interface.