In questa pagina

QAccessibleTextSelectionEvent Class

QAccessibleTextSelectionEvent segnala una modifica nella selezione del testo di un oggetto. Maggiori informazioni...

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

Funzioni pubbliche

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)

Descrizione dettagliata

Questa classe viene utilizzata con il metodo ` QAccessible::updateAccessibility()`.

Documentazione delle funzioni membro

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

Crea un nuovo oggetto `QAccessibleTextSelectionEvent` per ` iface`. La nuova selezione segnalata da questo evento va dalla posizione ` start ` a ` end`.

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

Crea un nuovo oggetto `QAccessibleTextSelectionEvent` per ` object`. La nuova selezione segnalata da questo evento va dalla posizione ` start ` a ` end`.

int QAccessibleTextSelectionEvent::selectionEnd() const

Restituisce la posizione dell'ultimo carattere selezionato.

int QAccessibleTextSelectionEvent::selectionStart() const

Restituisce la posizione del primo carattere selezionato.

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

Imposta la selezione per questo evento dalla posizione 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.