内容表

上一话题

QAccessibleObject

下一话题

QAccessibleTableCellInterface

QAccessibleStateChangeEvent

QAccessibleStateChangeEvent notfies the accessibility framework that the state of an object has changed. 更多

Inheritance diagram of PySide2.QtGui.QAccessibleStateChangeEvent

概要

函数

详细描述

此类被用于 updateAccessibility() .

另请参阅

state()

class QAccessibleStateChangeEvent ( iface , state )

QAccessibleStateChangeEvent(obj, state)

param iface

QAccessibleInterface

param state

State

param obj

QObject

构造新 QAccessibleStateChangeEvent . iface 是接口关联事件 state 是可访问对象的状态。

构造新 QAccessibleStateChangeEvent for object . The difference to the object’s previous state is in state .

PySide2.QtGui.QAccessibleStateChangeEvent. changedStates ( )
返回类型

State

返回已改变的状态。

请记住,返回状态是已改变状态。要找出对象的有关状态,使用 state() .

For example, if an object used to have the focus but loses it, the object’s state will have focused set to false 。另一方面,此事件告诉即将改变,且有聚焦被设为 true 因为聚焦状态正改变从 true to false .