QAccessibleTextSelectionEvent

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

Inheritance diagram of PySide2.QtGui.QAccessibleTextSelectionEvent

Synopsis

Functions

Detailed Description

This class is used with updateAccessibility() .

class PySide2.QtGui.QAccessibleTextSelectionEvent(iface, start, end)

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

param iface:

PySide2.QtGui.QAccessibleInterface

param obj:

PySide2.QtCore.QObject

param start:

int

param end:

int

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 .

PySide2.QtGui.QAccessibleTextSelectionEvent.selectionEnd()
Return type:

int

Returns the position of the last selected character.

PySide2.QtGui.QAccessibleTextSelectionEvent.selectionStart()
Return type:

int

Returns the position of the first selected character.

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

  • end – int

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