このページでは

QAccessibleTextSelectionEvent Class

QAccessibleTextSelectionEvent は、オブジェクトのテキスト選択範囲の変更を通知します。詳細...

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

パブリック関数

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)

詳細な説明

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

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

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

iface に対して、新しい QAccessibleTextSelectionEvent を作成します。このイベントが通知する新しい選択範囲は、位置start からend までです。

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

object に対して、新しい QAccessibleTextSelectionEvent を生成します。このイベントが通知する新しい選択範囲は、位置start からend までです。

int QAccessibleTextSelectionEvent::selectionEnd() const

最後に選択された文字の位置を返します。

int QAccessibleTextSelectionEvent::selectionStart() const

最初に選択された文字の位置を返します。

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

このイベントの選択範囲を、位置start からend に設定します。

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