QAccessibleTextUpdateEvent Class

QAccessibleTextUpdateEvent クラスは、テキストの変更を通知します。これは、行編集のような編集可能なテキストをサポートするアクセシブルテキストのためのものです。このイベントは、例えば、選択したテキストの一部が新しいテキストの貼り付けによって置換されたときや、エディタのオーバーライドモードで発生します。詳細...

ヘッダー #include <QAccessibleTextUpdateEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
継承: QAccessibleTextCursorEvent

パブリック関数

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

詳細説明

このクラスはQAccessible::updateAccessibility() と共に使用されます。

メンバ関数のドキュメント

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

iface の新しい QAccessibleTextUpdateEvent を構築します。テキストの変更は、oldText が削除され、代わりにtext が挿入されたposition で行われます。

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

object の新しい QAccessibleTextUpdateEvent を構築します。テキストの変更は、oldText が削除され、代わりにtext が挿入されたposition で行われます。

int QAccessibleTextUpdateEvent::changePosition() const

変更が行われた場所を返します。

QString QAccessibleTextUpdateEvent::textInserted() const

挿入されたテキストを返します。

QString QAccessibleTextUpdateEvent::textRemoved() const

削除されたテキストを返します。

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