このページでは

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 を作成します。テキストの変更は、position で行われ、そこでoldText が削除され、代わりにtext が挿入されました。

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

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

int QAccessibleTextUpdateEvent::changePosition() const

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

QString QAccessibleTextUpdateEvent::textInserted() const

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

QString QAccessibleTextUpdateEvent::textRemoved() const

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

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