이 페이지에서

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(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

이벤트 유형을 반환합니다.

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