In questa pagina

QAccessibleTextInsertEvent Class

La classe QAccessibleTextInsertEvent segnala l'inserimento di testo. Per saperne di più...

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

Funzioni pubbliche

QAccessibleTextInsertEvent(QAccessibleInterface *iface, int position, const QString &text)
QAccessibleTextInsertEvent(QObject *object, int position, const QString &text)
int changePosition() const
QString textInserted() const

Descrizione dettagliata

Questa classe viene utilizzata con QAccessible::updateAccessibility().

Documentazione delle funzioni membro

QAccessibleTextInsertEvent::QAccessibleTextInsertEvent(QAccessibleInterface *iface, int position, const QString &text)

Crea un nuovo evento `QAccessibleTextInsertEvent` per ` iface`. Il testo ` text ` è stato inserito in ` position`.

QAccessibleTextInsertEvent::QAccessibleTextInsertEvent(QObject *object, int position, const QString &text)

Crea un nuovo evento `QAccessibleTextInsertEvent` per ` object`. L'elemento ` text ` è stato inserito in ` position`. Per impostazione predefinita, si presume che il cursore si sia spostato alla fine della selezione. Se così non fosse, è necessario impostarlo manualmente con ` QAccessibleTextCursorEvent::setCursorPosition()` per questo evento.

int QAccessibleTextInsertEvent::changePosition() const

Restituisce la posizione in cui è stato inserito il testo.

QString QAccessibleTextInsertEvent::textInserted() const

Restituisce il testo che è stato inserito.

© 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.