Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.3, 5.15.4
-
None
-
Sony Xperia with Android 5
Description
Context
Items on Android Phone with TalkBack activated should be shown as dedicated elements a blind person can navigate through. It has to fulfill requirements of WCAG 2.0 / WCAG2ICT
Expectations
- onPressAction should be called for "clicks" via Android Accessibility features (like TalkBack).
- onClick should not be called if Accessibility features are on.
Observation
On Android 5 devices, "onClick" is called and "onPressAction" does nothing. Button 1 has no output, Button 2 writes "BAR".
Code
import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 Window { visible: true Column { Button { text: "Button 1" Accessible.onPressAction: () => console.log("FOO") } Button { text: "Button 2" onClicked: () => console.log("BAR") } } }
Note
Android 5 is still relevant for us, because it is officially supported by Qt 5.15. It is also used as device in the Accessibility Audit (https://doc.qt.io/qt-5/android.html)