Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.12, 6.2.7, 6.4.2
-
3c08d08ae (dev), d204cebca (6.5), 3e301a921 (tqtc/lts-6.2), c1d07c819 (tqtc/lts-5.15), bc3e74d01 (tqtc/lts-5.15)
Description
In the code below, even though we give the Button the role of "Accessible.RadioButton", it is still detected by the OS as a "regular" Button (as reported by Visual UIA Verify, Microsoft Narrator, or macOS VoiceOver).
In contrast, the role is correctly applied to the Rectangle (see screenshot)
import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 Window { width: 400 height: 300 visible: true title: qsTr("Accessibility Role Study") Column { Button { text: "Button" Accessible.role: Accessible.RadioButton } Rectangle { objectName: "Rectangle" width: 100 height: 50 color: "yellow" Accessible.role: Accessible.RadioButton } } }
Attachments
For Gerrit Dashboard: QTBUG-110114 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
472997,4 | Accessibility: respect value in attached Accessible in controls | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
473793,2 | Accessibility: respect value in attached Accessible in controls | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
473795,4 | Accessibility: respect value in attached Accessible in controls | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
505557,4 | Accessibility: respect value in attached Accessible in controls | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
505558,4 | Accessibility: respect value in attached Accessible in controls | tqtc/lts-5.15 | qt/tqtc-qtquickcontrols2 | Status: MERGED | +2 | 0 |