QAccessibleTextUpdateEvent Class
QAccessibleTextUpdateEvent 클래스는 텍스트 변경 사항을 알립니다. 줄 편집과 같은 편집 가능한 텍스트를 지원하는 접근성을 위한 클래스입니다. 이 이벤트는 예를 들어 선택한 텍스트의 일부가 새 텍스트를 붙여넣거나 편집기의 재정의 모드에서 대체될 때 발생합니다. 더 보기...
헤더: | #include <QAccessibleTextUpdateEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
상속합니다: | QAccessibleTextCursorEvent |
- 상속된 멤버를 포함한 모든 멤버 목록
- QAccessibleTextUpdateEvent는 접근성 클래스의 일부입니다.
공용 함수
QAccessibleTextUpdateEvent(QAccessibleInterface *iface, int position, const QString &oldText, const QString &text) | |
QAccessibleTextUpdateEvent(QObject *object, int position, const QString &oldText, const QString &text) | |
int | changePosition() const |
QString | textInserted() const |
QString | textRemoved() const |
상세 설명
이 클래스는 QAccessible::updateAccessibility()와 함께 사용됩니다.
멤버 함수 문서
QAccessibleTextUpdateEvent::QAccessibleTextUpdateEvent(QAccessibleInterface *iface, int position, const QString &oldText, const QString &text)
iface 에 대한 새로운 QAccessibleTextUpdateEvent를 생성합니다. 텍스트 변경은 position 에서 이루어지며 oldText 이 제거되고 text 이 대신 삽입됩니다.
QAccessibleTextUpdateEvent::QAccessibleTextUpdateEvent(QObject *object, int position, const QString &oldText, const QString &text)
object 에 대한 새로운 QAccessibleTextUpdateEvent를 생성합니다. 텍스트 변경은 position 에서 이루어지며 oldText 이 제거되고 text 이 대신 삽입됩니다.
int QAccessibleTextUpdateEvent::changePosition() const
변경이 발생한 위치를 반환합니다.
QString QAccessibleTextUpdateEvent::textInserted() const
삽입된 텍스트를 반환합니다.
QString QAccessibleTextUpdateEvent::textRemoved() const
제거된 텍스트를 반환합니다.
© 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.