En esta página

QAccessibleTextSelectionEvent Class

QAccessibleTextSelectionEvent señala un cambio en la selección de texto de un objeto. Más...

Cabecera: #include <QAccessibleTextSelectionEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Hereda: QAccessibleTextCursorEvent

Funciones Públicas

QAccessibleTextSelectionEvent(QAccessibleInterface *iface, int start, int end)
QAccessibleTextSelectionEvent(QObject *object, int start, int end)
int selectionEnd() const
int selectionStart() const
void setSelection(int start, int end)

Descripción detallada

Esta clase se utiliza con QAccessible::updateAccessibility().

Documentación de las funciones de los miembros

QAccessibleTextSelectionEvent::QAccessibleTextSelectionEvent(QAccessibleInterface *iface, int start, int end)

Construye un nuevo QAccessibleTextSelectionEvent para iface. La nueva selección sobre la que notifica este evento es de la posición start a end.

QAccessibleTextSelectionEvent::QAccessibleTextSelectionEvent(QObject *object, int start, int end)

Construye un nuevo QAccessibleTextSelectionEvent para object. La nueva selección sobre la que notifica este evento es de la posición start a end.

int QAccessibleTextSelectionEvent::selectionEnd() const

Devuelve la posición del último carácter seleccionado.

int QAccessibleTextSelectionEvent::selectionStart() const

Devuelve la posición del primer carácter seleccionado.

void QAccessibleTextSelectionEvent::setSelection(int start, int end)

Establece la selección para este evento desde la posición start a end.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.