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

Voice Assistant does not read what action could be performed on element

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2
    • None
    • Qt 5.15.2 / Samsung S10e A 10.0 

    • Android

    Description

      Qt 5.15.2 / Samsung S10e A 10.0 

      Steps to reproduce:

      1. Run sample code (/qtdeclarative/tests/manual/accessibility/textandbuttons.qml)

      2. Turn on Voice Assistant.

      3. Click on the text.

      Expected: VA should read what action can be performed on the element. 

      Actual: There is only sound that the element is active, but the user does not know what can be done with this element.

      NOTE: Tested the same on MacOS with VoiceOver function and it works well there.

      Cannot test on iOS due to the bug https://bugreports.qt.io/browse/QTBUG-90939

       

      CODE:

      import QtQuick 2.0
      
      Rectangle {
          id : rect
          width: 300
          height: 200
      
          Rectangle {
              width : 200
              height : 20
      
              id: button
              anchors.top : rect.top
              anchors.topMargin: 30
              property string text : "Click to activate"
              property int counter : 0
      
              Accessible.role : Accessible.Button
      
              Accessible.onPressAction: {
                  buttonAction()
              }
      
              function buttonAction() {
                  ++counter
                  text = "clicked " + counter
      
                  text2.x += 20
              }
      
              Text {
                  id : text1
                  anchors.fill: parent
                  text : parent.text
              }
      
              MouseArea {
                  id : mouseArea
                  anchors.fill: parent
                  onClicked: parent.buttonAction()
              }
          }
      
          Text {
              id : text2
              anchors.top: button.bottom
              anchors.topMargin: 50
              text : "Hello World " + x
      
              Behavior on x { PropertyAnimation { duration: 500 } }
          }
      }
      
      

      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
            lukasz.kosiorowski lukasz.kosiorowski
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes