PySide6.QtGui.QAccessibleTextSelectionEvent¶
- class QAccessibleTextSelectionEvent¶
QAccessibleTextSelectionEventsignals a change in the text selection of an object.Details
This class is used with
updateAccessibility().Synopsis¶
Methods¶
def
__init__()def
selectionEnd()def
selectionStart()def
setSelection()
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, start, end)¶
- Parameters:
iface –
QAccessibleInterfacestart – int
end – int
Constructs a new
QAccessibleTextSelectionEventforiface. The new selection this event notifies about is from positionstarttoend.- __init__(obj, start, end)
- Parameters:
obj –
QObjectstart – int
end – int
Constructs a new
QAccessibleTextSelectionEventforobject. The new selection this event notifies about is from positionstarttoend.- selectionEnd()¶
- Return type:
int
Returns the position of the last selected character.
- selectionStart()¶
- Return type:
int
Returns the position of the first selected character.
- setSelection(start, end)¶
- Parameters:
start – int
end – int
Sets the selection for this event from position
starttoend.