QAccessibleAttributesInterface Class

QAccessibleAttributesInterface 클래스는 접근 가능한 객체에 대한 보고 속성 지원을 구현합니다. 더 보기...

Header: #include <QAccessibleAttributesInterface>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
이후: Qt 6.8

공용 함수

virtual ~QAccessibleAttributesInterface()
virtual QList<QAccessible::Attribute> attributeKeys() const = 0
virtual QVariant attributeValue(QAccessible::Attribute key) const = 0

상세 설명

속성은 키-값 쌍입니다. 값은 QVariant 에 저장됩니다.

QAccessible::Attribute 열거형은 사용 가능한 키와 각 키의 값에 사용할 문서 유형을 설명합니다.

QAccessibleTextInterface::attributes 에서 처리하는 텍스트 관련 속성은 텍스트를 구현하는 객체에 한정되며 특정 텍스트 위치/오프셋에 한정되지만, QAccessibleAttributesInterface 에서 처리하는 속성은 모든 역할의 객체에 사용할 수 있으며 전체 객체에 적용됩니다.

이미 텍스트 특정 어트리뷰트에 대해 QAccessibleTextInterface 을 구현한 클래스는 객체 특정 어트리뷰트에 대해 QAccessibleAttributesInterface 을 추가로 구현할 수 있습니다.

멤버 함수 문서

[virtual noexcept] QAccessibleAttributesInterface::~QAccessibleAttributesInterface()

QAccessibleAttributesInterface 를 파괴합니다.

[pure virtual] QList<QAccessible::Attribute> QAccessibleAttributesInterface::attributeKeys() const

객체가 지원하는 모든 속성의 키를 반환합니다. QAccessible::Attribute 열거형은 사용 가능한 키를 설명합니다.

[pure virtual] QVariant QAccessibleAttributesInterface::attributeValue(QAccessible::Attribute key) const

이 객체의 key 속성 값을 반환합니다.

이 객체에 대해 속성이 설정되어 있으면 QAccessible::Attribute 열거형 문서에 지정된 키에 대해 문서화된 유형의 값이 QVariant 에 반환됩니다.

그렇지 않으면 잘못된 QVariant 이 반환됩니다.

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