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?
↧