[Accessibility] QML accessibility

Gladhorn Frederik Frederik.Gladhorn at digia.com
Tue Jul 22 13:17:34 CEST 2014


Hello Andre,

On 22 Jul 2014, at 00:04, Andre Polykanine <andre at oire.org> wrote:

> Hello everyone,
> Is QML (and namely QML scene) supposed to be accessible under Windows?
> I'm new to QT, so I'm just trying.
> Here's my slightly modified basic example:
> 
> import QtQuick 2.0
> 
> Rectangle {
> width: 200
> height: 100
> color: "yellow"
> 
> Text {
> anchors.centerIn: parent
> text: "Hello world!"
> }
> 
> focus: true
> Keys.onPressed: {
> if (event.Key == Qt.Key_Return) {
> color = "blue";
> text = "Hello Ukraine!";
> event.accepted = true;
> }
> }
> }
> 
> And,  when  running QmlScene, I can't get neither to this text, nor to
> the color with my screen reader navigation and reading commands.
> I'm using Windows 7 Ultimate with JAWS 15 latest release.
> To precise, I'm blind myself but would like to develop with QT.
> Thanks!

the problem with QML and Qt Quick is the level of abstraction.
The example you show below implements a “button” or similar, but it’s too low level for the accessibility framework to guess what you intend.
There is accessibility support built in for Qt Quick Controls. And you can also easily make your example accessible by adding a few properties, the docs are here:
http://qt-project.org/doc/qt-5-dev/qml-qtquick-accessible.html

I think the link above should get you started, let me know if you need more help or things don’t work.
Greetings,
Frederik

> 
> -- 
> With best regards from Ukraine,
> Andre
> Skype: Francophile
> Twitter: http://twitter.com/m_elensule
> Facebook: http://facebook.com/menelion
> 
> _______________________________________________
> Accessibility mailing list
> Accessibility at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/accessibility




More information about the Accessibility mailing list