Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93426

Android A11Y TalkBack: onPressAction get's not called

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.3, 5.15.4
    • None
    • Sony Xperia with Android 5
    • Android

    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)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtandroidteam Qt Android Team
            michl86 Michael Piendl
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes