En esta página

Qt Quick Ejemplos: accesibilidad

Este ejemplo muestra cómo se implementan los botones accesibles.

La sección«Accesibilidad» muestra tipos de QML que se han ampliado con metadatos para sistemas de accesibilidad. Para obtener más información, visita la página de Accesibilidad.

Ejecución del ejemplo

Puedes ejecutar el ejemplo desde:

Implementación de botones accesibles

El botón se identifica a sí mismo y su funcionalidad ante el sistema de accesibilidad:

Accessible.name: text
Accessible.description: "This button does " + text
Accessible.role: Accessible.Button
Accessible.onPressAction: {
    button.clicked()
}

Del mismo modo, los tipos « Text » incluidos en el ejemplo también se identifican a sí mismos:

Accessible.role: Accessible.StaticText
Accessible.name: text

Proyecto de ejemplo en code.qt.io

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