QAccessibleStateChangeEvent Class
QAccessibleStateChangeEvent는 객체의 상태가 변경되었음을 접근성 프레임워크에 알립니다. 더 보기...
| 헤더: | #include <QAccessibleStateChangeEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| 상속: | QAccessibleEvent |
- 상속된 멤버를 포함한 모든 멤버 목록
- QAccessibleStateChangeEvent는 접근성 클래스의 일부입니다.
공개 함수
| 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)
새로운 QAccessibleStateChangeEvent 객체를 생성합니다. ` iface `는 해당 이벤트와 관련된 인터페이스이며, ` state `는 접근 가능한 객체의 상태입니다.
QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QObject *object, QAccessible::State state)
object 에 대한 새로운 QAccessibleStateChangeEvent를 생성합니다. 객체의 이전 상태와의 차이는 state 에 있습니다.
QAccessible::State QAccessibleStateChangeEvent::changedStates() const
변경된 상태를 반환합니다.
반환된 상태는 변경된 상태들임을 유의하십시오. 객체의 상태를 확인하려면 ` QAccessibleInterface::state()`를 사용하십시오.
예를 들어, 객체가 이전에 포커스를 가지고 있었으나 이를 잃은 경우, 해당 객체의 'focused' 속성은 false 로 설정됩니다. 반면 이 이벤트는 변경 사항을 알려주며, 포커스 상태가 true 에서 false 로 변경되었으므로 'focused' 속성은 true 로 설정됩니다.
© 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.