QAccessibleEventclass is the base class for accessibility notifications. 更多 …
继承者: QAccessibleStateChangeEvent , QAccessibleTableModelChangeEvent , QAccessibleTextCursorEvent , QAccessibleTextInsertEvent , QAccessibleTextRemoveEvent , QAccessibleTextSelectionEvent , QAccessibleTextUpdateEvent , QAccessibleValueChangeEvent
def
accessibleInterface
()
此类被用于
updateAccessibility().事件类型是之一值对于
Event。应该使用很多子类来提供有关事件的更多细节。例如,通知聚焦即将改变当重实现
setFocus,可以使用事件如下所示:void MyWidget::setFocus(Qt::FocusReason reason) { // handle custom focus setting... QAccessibleEvent event(f, QAccessible::Focus); QAccessible::updateAccessibility(&event); }要在进程中启用屏幕阅读器,所有事件必须被发送在改变已发生之后。
QAccessibleEvent
(
iface
,
typ
)
¶
QAccessibleEvent(obj, typ)
- param iface
- param typ
Event- param obj
QObject
构造
QAccessibleEvent
to notify that
interface
有改变。事件
type
描述改变了什么。使用此函数若已拥有
QAccessibleInterface
or no
QObject
,否则考虑重载采用
QObject
参数,因为它可能更便宜。
构造
QAccessibleEvent
to notify that
object
有改变。事件
type
描述改变了什么。
PySide2.QtGui.QAccessibleEvent.
accessibleInterface
(
)
¶
返回
QAccessibleInterface
与事件关联。
PySide2.QtGui.QAccessibleEvent.
child
(
)
¶
int
返回子级索引。
另请参阅
PySide2.QtGui.QAccessibleEvent.
object
(
)
¶
QObject
返回事件对象。
PySide2.QtGui.QAccessibleEvent.
type
(
)
¶
Event
返回事件类型。
PySide2.QtGui.QAccessibleEvent.
uniqueId
(
)
¶
long
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.