Sur cette page

QAccessibleTextInsertEvent Class

La classe QAccessibleTextInsertEvent notifie l'insertion d'un texte. Plus d'informations...

En-tête : #include <QAccessibleTextInsertEvent>
CMake : find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake : QT += gui
Héritages : QAccessibleTextCursorEvent

Fonctions publiques

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

Description détaillée

Cette classe est utilisée avec QAccessible::updateAccessibility().

Documentation des fonctions membres

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

Construit un nouvel événement QAccessibleTextInsertEvent pour iface. Le site text a été inséré à l'adresse position.

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

Construit un nouvel événement QAccessibleTextInsertEvent pour object. Le texte text a été inséré à l'adresse position. Par défaut, on suppose que le curseur s'est déplacé jusqu'à la fin de la sélection. Si ce n'est pas le cas, il faut le placer manuellement avec QAccessibleTextCursorEvent::setCursorPosition() pour cet événement.

int QAccessibleTextInsertEvent::changePosition() const

Renvoie la position à laquelle le texte a été inséré.

QString QAccessibleTextInsertEvent::textInserted() const

Renvoie le texte qui a été inséré.

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