QAccessibleStateChangeEvent

The QAccessibleStateChangeEvent notfies the accessibility framework that the state of an object has changed. More

Inheritance diagram of PySide2.QtGui.QAccessibleStateChangeEvent

Synopsis

Functions

Detailed Description

This class is used with updateAccessibility() .

See also

state()

class PySide2.QtGui.QAccessibleStateChangeEvent(iface, state)

PySide2.QtGui.QAccessibleStateChangeEvent(obj, state)

param iface:

PySide2.QtGui.QAccessibleInterface

param state:

PySide2.QtGui.QAccessible.State

param obj:

PySide2.QtCore.QObject

Constructs a new QAccessibleStateChangeEvent . iface is the interface associated with the event state is the state of the accessible object.

Constructs a new QAccessibleStateChangeEvent for object . The difference to the object’s previous state is in state .

PySide2.QtGui.QAccessibleStateChangeEvent.changedStates()
Return type:

PySide2.QtGui.QAccessible.State

Returns the states that have been changed.

Keep in mind that the returned states are the ones that have changed. To find out about the state of an object, use state() .

For example, if an object used to have the focus but loses it, the object’s state will have focused set to false . This event on the other hand tells about the change and has focused set to true since the focus state is changed from true to false .