Nesta página

QAccessibleTextInsertEvent Class

A classe QAccessibleTextInsertEvent notifica quando há inserção de texto. Mais...

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

Funções públicas

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

Descrição detalhada

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

Documentação da função de membro

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

Cria um novo evento `QAccessibleTextInsertEvent` para ` iface`. O ` text ` foi inserido em ` position`.

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

Cria um novo evento `QAccessibleTextInsertEvent` para ` object`. O ` text ` foi inserido em ` position`. Por padrão, presume-se que o cursor tenha se deslocado para o final da seleção. Se esse não for o caso, é necessário configurá-lo manualmente com ` QAccessibleTextCursorEvent::setCursorPosition()` para este evento.

int QAccessibleTextInsertEvent::changePosition() const

Retorna a posição em que o texto foi inserido.

QString QAccessibleTextInsertEvent::textInserted() const

Retorna o texto que foi inserido.

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