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

Android A11Y TalkBack: MouseArea click AND pressAction are called

    XMLWordPrintable

Details

    • Android

    Description

      Update by Reporter: Looks like this issue was fixed with 5.15.3. Reporter CI/CD environment built a version with 5.15.2 which still had the issue.

      Context

      QML MouseArea on Android Phone with TalkBack activated to fulfill requirements of WCAG 2.0 / WCAG2ICT

      Expectations

      • A MouseArea should call "onClicked" only on touch without TalkBack is off.
      • A MouseArea should call "Accessible.onPressAction" only if TalkBack is on

      Observation

      Clicking on the MouseArea calls both functions.
      If the code is for example a toggle logic like "variable = !variable" this could not work.

       Code

      import QtQuick 2.15
      import QtQuick.Window 2.15
      
      Window {
          visible: true
      
          MouseArea {
              anchors.fill: parent
              onClicked: () => { console.log("onClicked"); }
              Accessible.name: "MouseArea"
              Accessible.onPressAction: () => { console.log("onPressAction"); }
          }
      }
      

       Output

      Output after opening the app, focus button and "click" on it via Android TalkBack.

      W Qt A11Y : Could not activate platform accessibility.
      W Qt A11Y : AccessibilityNodeInfo with empty contentDescription: -2147483647
      D libA11Y_armeabi-v7a.so: qml: onPressAction
      D libA11Y_armeabi-v7a.so: qml: onClicked
      

      Attachments

        Issue Links

          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:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes