Nesta página

QAccessibleTextSelectionEvent Class

O evento `QAccessibleTextSelectionEvent` sinaliza uma alteração na seleção de texto de um objeto. Mais...

Cabeçalho: #include <QAccessibleTextSelectionEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Herdado de: QAccessibleTextCursorEvent

Funções 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)

Descrição detalhada

Esta classe é usada com o método ` QAccessible::updateAccessibility()`.

Documentação da função de membro

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

Cria um novo objeto `QAccessibleTextSelectionEvent` para ` iface`. A nova seleção sobre a qual este evento notifica vai da posição ` start ` até ` end`.

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

Cria um novo objeto `QAccessibleTextSelectionEvent` para ` object`. A nova seleção sobre a qual este evento notifica vai da posição ` start ` até ` end`.

int QAccessibleTextSelectionEvent::selectionEnd() const

Retorna a posição do último caractere selecionado.

int QAccessibleTextSelectionEvent::selectionStart() const

Retorna a posição do primeiro caractere selecionado.

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

Define a seleção para este evento da posição start até 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.