内容表

上一话题

QAccessibleTextRemoveEvent

下一话题

QAccessibleTextUpdateEvent

QAccessibleTextSelectionEvent

QAccessibleTextSelectionEvent signals a change in the text selection of an object. 更多

Inheritance diagram of PySide2.QtGui.QAccessibleTextSelectionEvent

概要

函数

详细描述

此类被用于 updateAccessibility() .

class QAccessibleTextSelectionEvent ( iface , start , end )

QAccessibleTextSelectionEvent(obj, start, end)

param iface

QAccessibleInterface

param obj

QObject

param start

int

param end

int

构造新 QAccessibleTextSelectionEvent for iface 。此事件通知新选定即将从位置 start to end .

构造新 QAccessibleTextSelectionEvent for object 。此事件通知新选定即将从位置 start to end .

PySide2.QtGui.QAccessibleTextSelectionEvent. selectionEnd ( )
返回类型

int

返回最后选中字符的位置。

PySide2.QtGui.QAccessibleTextSelectionEvent. selectionStart ( )
返回类型

int

返回第一选中字符的位置。

PySide2.QtGui.QAccessibleTextSelectionEvent. setSelection ( start , end )
参数
  • start int

  • end int

设置用于此事件的选定从位置 start to end .