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

Android A11Y TalkBack: Focus Rectangle is not hidden with Item getting invisible

    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

      QtQuick Controls 2 Button on Android Phone with TalkBack activated to fulfill requirements of WCAG 2.0 / WCAG2ICT

      Expectations

      • FocusRect of TalkBack should be hidden if item get's hidden.

      Observation

      Hiding the button does not hide the TalkBack focus rectangle

       Code

      import QtQuick 2.15
      import QtQuick.Window 2.15
      import QtQuick.Controls 2.15
      
      Window {
          visible: true
      
          Button {
              text: "Button"
              onClicked: () => { console.log("onClicked"); hide(); }
              Accessible.name: text
              Accessible.onPressAction: () => { console.log("onPressAction"); hide(); }
      
              function hide() {
                  visible = false
              }
          }
      }
      

       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
      W Qt A11Y : sendEventForVirtualViewId for invalid view
      D libA11Y_armeabi-v7a.so: qml: onPressAction
      W Qt A11Y : AccessibilityEvent with empty description
      

      Attachments

        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: