QAccessibleTextSelectionEvent#

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

Inheritance diagram of PySide6.QtGui.QAccessibleTextSelectionEvent

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.QAccessibleTextSelectionEvent(iface, start, end)#

PySide6.QtGui.QAccessibleTextSelectionEvent(obj, start, end)

Parameters:

Constructs a new QAccessibleTextSelectionEvent for iface. The new selection this event notifies about is from position start to end.

Constructs a new QAccessibleTextSelectionEvent for object. The new selection this event notifies about is from position start to end.

PySide6.QtGui.QAccessibleTextSelectionEvent.selectionEnd()#
Return type:

int

Returns the position of the last selected character.

PySide6.QtGui.QAccessibleTextSelectionEvent.selectionStart()#
Return type:

int

Returns the position of the first selected character.

PySide6.QtGui.QAccessibleTextSelectionEvent.setSelection(start, end)#
Parameters:
  • start – int

  • end – int

Sets the selection for this event from position start to end.