En esta página

Qt Quick Ejemplos - Accesibilidad

Este ejemplo muestra la implementación de botones accesibles.

Accesibilidad muestra los tipos QML enriquecidos con metadatos para sistemas de accesibilidad. Para obtener más información, visite la página Accesibilidad.

Ejecución del ejemplo

Para ejecutar el ejemplo desde Qt Creatorabra el modo Welcome y seleccione el ejemplo de Examples. Para más información, consulte Qt Creator: Tutorial: Construir y ejecutar.

Implementación de botones accesibles

El botón se identifica a sí mismo y a 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 del ejemplo también se identifican:

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

Proyecto de ejemplo @ 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.