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

Android A11Y TalkBack: Hidden onPressAction still called

    XMLWordPrintable

Details

    • Android
    • 8
    • f6ddb3e921 (qt/qtbase/dev) f6ddb3e921 (qt/tqtc-qtbase/dev) c577794418 (qt/qtbase/6.3) ef233748af (qt/qtbase/6.2) ef233748af (qt/tqtc-qtbase/6.2) c577794418 (qt/tqtc-qtbase/6.3) 7e1e42d7f9 (qt/tqtc-qtbase/5.15)
    • Team One Foundation Sprint 50

    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

      • Only visible elements can be clicked / activated

      Observation

      Items that get's hidden in a StackLayout still fire onPressAction even if no longer visible.
      IMG_4727.MOV. Video with App with current 5.15.4.

       Code

      import QtQuick 2.15
      import QtQuick.Window 2.15
      import QtQuick.Controls 2.15
      import QtQuick.Layouts 1.15
      
      Window {
          visible: true
      
          Column {
              Text {
                  text: "Index: " + stackLayout.currentIndex
              }
              StackLayout {
                  id: stackLayout
                  Button {
                      text: "Button 1"
                      onClicked: () => stackLayout.currentIndex++
                      Accessible.onPressAction: () => stackLayout.currentIndex++
                  }
                  Button {
                      text: "Button 2"
                      onClicked: () => stackLayout.currentIndex--
                      Accessible.onPressAction: () => stackLayout.currentIndex--
                  }
              }
      
          }
      }
      

      Attachments

        For Gerrit Dashboard: QTBUG-93393
        # Subject Branch Project Status CR V

        Activity

          People

            ivan.solovev Ivan Solovev
            michl86 Michael Piendl
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: