PySide6.QtGui.QAccessibleTextInsertEvent¶
- class QAccessibleTextInsertEvent¶
The
QAccessibleTextInsertEventclass notifies of text being inserted.Details
This class is used with
updateAccessibility().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
- __init__(iface, position, text)¶
- Parameters:
iface –
QAccessibleInterfaceposition – int
text – str
Constructs a new
QAccessibleTextInsertEventevent foriface. Thetexthas been inserted atposition.- __init__(obj, position, text)
- Parameters:
obj –
QObjectposition – int
text – str
Constructs a new
QAccessibleTextInsertEventevent forobject. Thetexthas been inserted atposition. By default, it is assumed that the cursor has moved to the end of the selection. If that is not the case, one needs to manually set it withsetCursorPosition()for this event.- changePosition()¶
- Return type:
int
Returns the position where the text was inserted.
- textInserted()¶
- Return type:
str
Returns the text that has been inserted.