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

Android A11Y TalkBack: onPressAction get's not called

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.3, 5.15.4
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Sony Xperia with Android 5
    • Platform/s:
      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

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes