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

Accessibility state not updated when pushing to a StackView on Android

    XMLWordPrintable

Details

    • Android

    Description

      When pushing or popping an element to a StackView, Android's TalkBack doesn't update the focus to the new element.

      Here's the StackView example with Accessible properties added:

      StackView {
          id: stack
          initialItem: mainView
          anchors.fill: parent
      }
      Component {
          id: mainView
      
          Row {
              spacing: 10
      
              Button {
                  Accessible.name: text
                  text: "Push"
                  onClicked: stack.push(mainView)
              }
              Button {
                  Accessible.name: text
                  text: "Pop"
                  enabled: stack.depth > 1
                  onClicked: stack.pop()
      
              }
              Text {
                  Accessible.name: text
                  text: stack.depth
              }
          }
      }
      

      Selecting "Push" will push a new view, but the voice assistant doesn't read back anything and the focus is still on the "old" push button from the previous view.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jhasse Jan Niklas Hasse
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes