QAccessibleEvent Class
QAccessibleEvent 클래스는 접근성 알림을 위한 기본 클래스입니다. 더 보기...
헤더: | #include <QAccessibleEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
에 의해 상속되었습니다: | QAccessibleAnnouncementEvent, QAccessibleStateChangeEvent, QAccessibleTableModelChangeEvent, QAccessibleTextCursorEvent, 그리고 QAccessibleValueChangeEvent |
- 상속된 멤버를 포함한 모든 멤버 목록
- QAccessibleEvent는 접근성 클래스의 일부입니다.
공용 함수
QAccessibleEvent(QAccessibleInterface *interface, QAccessible::Event type) | |
QAccessibleEvent(QObject *object, QAccessible::Event type) | |
virtual | ~QAccessibleEvent() |
virtual QAccessibleInterface * | accessibleInterface() const |
int | child() const |
QObject * | object() const |
void | setChild(int child) |
QAccessible::Event | type() const |
상세 설명
이 클래스는 QAccessible::updateAccessibility()와 함께 사용됩니다.
이벤트 유형은 QAccessible::Event 의 값 중 하나입니다. 이벤트에 대한 자세한 정보를 제공하는 데 사용해야 하는 여러 하위 클래스가 있습니다.
예를 들어 QWidget::setFocus 을 다시 구현할 때 포커스 변경을 알리기 위해 이벤트는 다음과 같이 사용될 수 있습니다:
void MyWidget::setFocus(Qt::FocusReason reason) { // handle custom focus setting... QAccessibleEvent event(f, QAccessible::Focus); QAccessible::updateAccessibility(&event); }
인 프로세스 스크린 리더를 사용하려면 모든 이벤트는 변경이 발생한 후에 전송되어야 합니다.
멤버 함수 문서
QAccessibleEvent::QAccessibleEvent(QAccessibleInterface *interface, QAccessible::Event type)
interface 이 변경되었음을 알리기 위해 QAccessibleEvent를 구성합니다. type 이벤트는 변경된 내용을 설명합니다. 이미 QAccessibleInterface 가 있거나 QObject 이 없는 경우 이 함수를 사용하세요. 그렇지 않으면 QObject 매개 변수를 사용하는 것이 더 저렴할 수 있으므로 오버로드를 고려하세요.
QAccessibleEvent::QAccessibleEvent(QObject *object, QAccessible::Event type)
object 이 변경되었음을 알리기 위해 QAccessibleEvent를 구성합니다. type 이벤트는 변경된 내용을 설명합니다.
[virtual noexcept]
QAccessibleEvent::~QAccessibleEvent()
이벤트를 삭제합니다.
[virtual]
QAccessibleInterface *QAccessibleEvent::accessibleInterface() const
이벤트와 연관된 QAccessibleInterface 을 반환합니다.
int QAccessibleEvent::child() const
하위 인덱스를 반환합니다.
setChild()도 참조하세요 .
QObject *QAccessibleEvent::object() const
이벤트 객체를 반환합니다.
void QAccessibleEvent::setChild(int child)
하위 인덱스를 child 로 설정합니다.
child()도 참조하세요 .
QAccessible::Event QAccessibleEvent::type() 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.