QAccessibleStateChangeEvent Class

QAccessibleStateChangeEvent는 접근성 프레임워크에 객체의 상태가 변경되었음을 알립니다. 더 보기...

헤더: #include <QAccessibleStateChangeEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
상속합니다: QAccessibleEvent

공용 함수

QAccessibleStateChangeEvent(QAccessibleInterface *iface, QAccessible::State state)
QAccessibleStateChangeEvent(QObject *object, QAccessible::State state)
QAccessible::State changedStates() const

상세 설명

이 클래스는 QAccessible::updateAccessibility()와 함께 사용됩니다.

QAccessibleInterface::state()도 참조하세요 .

멤버 함수 문서

QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QAccessibleInterface *iface, QAccessible::State state)

iface 은 이벤트와 연결된 인터페이스 state 은 접근 가능한 객체의 상태입니다.

QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QObject *object, QAccessible::State state)

object 에 대한 새로운 QAccessibleStateChangeEvent를 생성합니다. 객체의 이전 상태와의 차이는 state 에 있습니다.

QAccessible::State QAccessibleStateChangeEvent::changedStates() const

변경된 상태를 반환합니다.

반환되는 상태는 변경된 상태라는 점에 유의하세요. 개체의 상태를 확인하려면 QAccessibleInterface::state()를 사용합니다.

예를 들어, 객체에 포커스가 있었으나 포커스를 잃은 경우 객체의 상태는 false 로 설정됩니다. 반면에 이 이벤트는 변경 사항을 알려주며 포커스 상태가 true 에서 false 로 변경되었으므로 true 으로 설정됩니다.

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