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 の位置に設定する。

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