QAccessibleAttributesInterface Class
QAccessibleAttributesInterface 클래스는 접근 가능한 객체의 속성을 보고하는 기능을 구현합니다. 더 보기...
| 헤더: | #include <QAccessibleAttributesInterface> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| 다음부터: | Qt 6.8부터 |
- 상속된 멤버를 포함한 모든 멤버 목록
- QAccessibleAttributesInterface는 접근성 클래스의 일부입니다.
공개 함수
| QAccessibleAttributesInterface() | |
| 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 `을 추가로 구현하는 것이 좋습니다.
멤버 함수 문서
[constexpr noexcept default] QAccessibleAttributesInterface::QAccessibleAttributesInterface()
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 ` 값이 반환됩니다.
© 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.