Qt Quick 예시 - 접근성
이 예제는 접근성이 보장된 버튼의 구현 방법을 보여줍니다.
접근성 섹션에서는 접근성 시스템을 위한 메타데이터가 추가된 QML 유형을 보여줍니다. 자세한 내용은 접근성 페이지를 참조하십시오.
예제 실행
다음 경로에서 예제를 실행할 수 있습니다:
- Qt Creator
Welcome 모드를 열고 Examples 에서 예제를 선택하십시오. 자세한 내용은 Qt Creator: 튜토리얼: 빌드 및 실행을 참조하십시오.
- Qt Extension for Visual Studio Code
Command Palette 에서 Qt: Open Qt examples 명령을 실행하고 목록에서 예제를 선택합니다. 자세한 내용은 Qt Extension for Visual Studio Code: 튜토리얼: 빌드 및 실행을 참조하십시오.
접근성 지원 버튼 구현
버튼은 접근성 시스템에 자체 정보와 기능을 알립니다:
Accessible.name: text
Accessible.description: "This button does " + text
Accessible.role: Accessible.Button
Accessible.onPressAction: {
button.clicked()
}마찬가지로, 예제 내부의 ` Text ` 유형도 자체를 식별합니다:
Accessible.role: Accessible.StaticText
Accessible.name: text© 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.