PySide6.QtGui.QAccessibleTextUpdateEvent¶
- class QAccessibleTextUpdateEvent¶
The
QAccessibleTextUpdateEvent
class notifies about text changes. This is for accessibles that support editable text such as line edits. This event occurs for example when a portion of selected text gets replaced by pasting a new text or in override mode of editors. More…Synopsis¶
Methods¶
def
__init__()
def
changePosition()
def
textInserted()
def
textRemoved()
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, oldText, text)¶
- Parameters:
iface –
QAccessibleInterface
position – int
oldText – str
text – str
Constructs a new
QAccessibleTextUpdateEvent
foriface
. The text change takes place atposition
where theoldText
was removed andtext
inserted instead.- __init__(obj, position, oldText, text)
- Parameters:
obj –
QObject
position – int
oldText – str
text – str
Constructs a new
QAccessibleTextUpdateEvent
forobject
. The text change takes place atposition
where theoldText
was removed andtext
inserted instead.- changePosition()¶
- Return type:
int
Returns where the change took place.
- textInserted()¶
- Return type:
str
Returns the inserted text.
- textRemoved()¶
- Return type:
str
Returns the removed text.