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

Inheritance diagram of PySide6.QtGui.QAccessibleTextUpdateEvent

Synopsis#

Functions#

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() .

class PySide6.QtGui.QAccessibleTextUpdateEvent(iface, position, oldText, text)#

PySide6.QtGui.QAccessibleTextUpdateEvent(obj, position, oldText, text)

Parameters:

Constructs a new QAccessibleTextUpdateEvent for iface. The text change takes place at position where the oldText was removed and text inserted instead.

Constructs a new QAccessibleTextUpdateEvent for object. The text change takes place at position where the oldText was removed and text inserted instead.

PySide6.QtGui.QAccessibleTextUpdateEvent.changePosition()#
Return type:

int

Returns where the change took place.

PySide6.QtGui.QAccessibleTextUpdateEvent.textInserted()#
Return type:

str

Returns the inserted text.

PySide6.QtGui.QAccessibleTextUpdateEvent.textRemoved()#
Return type:

str

Returns the removed text.