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

Android A11Y TalkBack: Hidden onPressAction still called

    XMLWordPrintable

    Details

    • Platform/s:
      Android
    • Story Points:
      8
    • Sprint:
      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

            Assignee:
            ivan.solovev Ivan Solovev
            Reporter:
            michl86 Michael Piendl
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There is 1 open Gerrit change