このページでは

QAccessibleTextInsertEvent Class

QAccessibleTextInsertEvent クラスは、テキストが挿入されたことを通知します。詳細...

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

パブリック関数

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

詳細な説明

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

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

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

iface に対して、新しい QAccessibleTextInsertEvent イベントを生成します。text がposition に挿入されました。

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

object に対して、新しい QAccessibleTextInsertEvent イベントを作成します。text がposition に挿入されました。デフォルトでは、カーソルが選択範囲の末尾に移動したとみなされます。そうでない場合は、このイベントに対してQAccessibleTextCursorEvent::setCursorPosition() を使用して手動で設定する必要があります。

int QAccessibleTextInsertEvent::changePosition() const

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

QString QAccessibleTextInsertEvent::textInserted() 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.