Auf dieser Seite

QAccessibleTextRemoveEvent Class

Die Klasse „QAccessibleTextRemoveEvent“ meldet, wenn Text gelöscht wird. Mehr...

Header: #include <QAccessibleTextRemoveEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Erbt von: QAccessibleTextCursorEvent

Öffentliche Funktionen

QAccessibleTextRemoveEvent(QAccessibleInterface *iface, int position, const QString &text)
QAccessibleTextRemoveEvent(QObject *object, int position, const QString &text)
int changePosition() const
QString textRemoved() const

Ausführliche Beschreibung

Diese Klasse wird mit der Funktion „ QAccessible::updateAccessibility()“ verwendet.

Dokumentation der Mitgliedsfunktionen

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

Erstellt ein neues QAccessibleTextRemoveEvent-Ereignis für „ iface “. Die „ text “ wurde unter position entfernt. Standardmäßig wird davon ausgegangen, dass sich der Cursor auf „ position “ bewegt hat. Ist dies nicht der Fall, muss man ihn für dieses Ereignis manuell mit „ QAccessibleTextCursorEvent::setCursorPosition()“ setzen.

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

Erstellt ein neues „QAccessibleTextRemoveEvent“-Ereignis für „ object “. Die „ text “ wurde unter position entfernt. Standardmäßig wird davon ausgegangen, dass sich der Cursor auf „ position “ bewegt hat. Ist dies nicht der Fall, muss man ihn für dieses Ereignis manuell mit „ QAccessibleTextCursorEvent::setCursorPosition()“ setzen.

int QAccessibleTextRemoveEvent::changePosition() const

Gibt die Position zurück, an der der Text entfernt wurde.

QString QAccessibleTextRemoveEvent::textRemoved() const

Gibt den entfernten Text zurück.

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