이 페이지에서

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.