Problems with accessibility when QML Window is used
-
We are trying to implement Accessibility friendly application. We found that screen readers (AccExplorer32, Narrator) fail to recognize QML elements when the application top window is implemented using Window object. Consider:
@Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")Text { text: qsTr("Hello World") x: 10 y: 10 Accessible.name: "stam pam" Accessible.role: Accessible.StaticText } Rectangle { x: 10 y: 100 width: 200 height: 200 color: "#f70808" Accessible.name: "bom nom" Accessible.role: Accessible.Button }
}
On Other hand screen reader works fine with ApplicationWindow
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Hello World")Text { text: qsTr("Hello World") x: 10 y: 10 Accessible.name: "stam pam" Accessible.role: Accessible.StaticText } Rectangle { x: 10 y: 100 width: 200 height: 200 color: "#f70808" Accessible.name: "bom nom" Accessible.role: Accessible.Button }
}
Is it a bug? Are we doing something wrong?
@ -
Hi and welcome to devnet,
Which version of Qt are you currently using ?
-
Hi, thanks for welcoming.
We are using open source Qt 5.3.2, vs2013, 64 bit. In the example above screen readers would recognize only Hello World Text element, but will miss Rectangle if used inside Window. Both Text and Rectangle are recognized when used inside ApplicationWindow
Regards
Ilia -
Then, you should test with the Qt 5.4 beta to see if it's still the same
-
Tried it with Qt 5.4. The problem persists. Can I assume it is a bug?
-
Either a bug or a yet to be implemented feature. You should check the "bug report system":http://bugreports.qt-project.org to see if there's something about it