- class QAccessibleTextInsertEvent#
The
QAccessibleTextInsertEvent
class notifies of text being inserted. More…Synopsis#
Methods#
def
__init__()
def
changePosition()
def
textInserted()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
This class is used with
updateAccessibility()
.- __init__(iface, position, text)#
- Parameters:
iface –
QAccessibleInterface
position – int
text – str
Constructs a new
QAccessibleTextInsertEvent
event foriface
. The text has been inserted atposition
.- __init__(obj, position, text)
- Parameters:
obj –
QObject
position – int
text – str
构造一个新的
QAccessibleTextInsertEvent
事件用于object
。文本已被插入到position
。默认情况下,假设光标已移动到选中区的末尾。如果不是这种情况,需要通过setCursorPosition()
手动设置此事件的光标位置。- changePosition()#
- 返回类型:
int
返回文本插入的位置。
- textInserted()#
- 返回类型:
str
返回已插入的文本。