Auf dieser Seite

QAccessibleTextSelectionEvent Class

Das Ereignis „QAccessibleTextSelectionEvent“ signalisiert eine Änderung der Textauswahl eines Objekts. Mehr...

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

Öffentliche Funktionen

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)

Ausführliche Beschreibung

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

Dokumentation zu den Mitgliedsfunktionen

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

Erstellt ein neues `QAccessibleTextSelectionEvent` für ` iface`. Die neue Auswahl, über die dieses Ereignis informiert, erstreckt sich von der Position ` start ` bis zur Position ` end`.

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

Erstellt ein neues `QAccessibleTextSelectionEvent` für ` object`. Die neue Auswahl, über die dieses Ereignis informiert, erstreckt sich von der Position ` start ` bis zur Position ` end`.

int QAccessibleTextSelectionEvent::selectionEnd() const

Gibt die Position des zuletzt ausgewählten Zeichens zurück.

int QAccessibleTextSelectionEvent::selectionStart() const

Gibt die Position des ersten ausgewählten Zeichens zurück.

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

Legt die Auswahl für dieses Ereignis von der Position start bis end fest.

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