QAccessibleTextSelectionEvent Class

QAccessibleTextSelectionEvent는 객체의 텍스트 선택이 변경되었음을 알립니다. 더 보기...

Header: #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.