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

VoiceOver does not recognise MouseArea on iOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2
    • None
    • QT 5.15.2, iPhone 8 14.4
    • iOS/tvOS/watchOS

    Description

      Steps to reproduce:

      1. Run sample code.

      2. Turn on Voice Assistant.

      3. Double tap on the rectangles.

      Expected: Rectangles should receive the click and should move.

      Actual: Objects do not receive clicks.

       

      Tested with Qt 5.15.2 (commercial) and iPhone8 with iOS 14.4.

      It works well on Android.

       

      Sample code:

      import QtQuick 2.0
      import QtQuick.Controls 2.12
      import "content"
      
      Rectangle {
          id: scene
          width: 800; height: 600
      
          Rectangle {
              id: behavior
              x : 50
              y : 100
              width: 100; height: 100
              color: "red"
      
              Text {
                  text : "Behavior"
              }
      
              Behavior on x {
                  NumberAnimation { duration: 1000 }
              }
      
              MouseArea {
                  Accessible.onPressAction: pressed()
                  anchors.fill: parent
                  onClicked: behavior.x += 50
              }
          }
      
          Rectangle {
              id: transition
              x : 400
              y : 100
              width: 100; height: 100
              color: "red"
      
              MouseArea {
                  id: mouseArea
                  anchors.fill: parent
              }
      
              Text {
                  text : "Transition"
              }
      
              states: State {
                  name: "moved"; when: mouseArea.pressed
                  PropertyChanges { target: transition; x: 500; y: 200 }
              }
      
              transitions: Transition {
                  NumberAnimation { properties: "x,y"; easing.type: Easing.InOutQuad; duration: 1000 }
              }
          }
      
          Rectangle {
              id : animatee
              width: 100; height: 100
              x : 50
              y : 300
              color: "blue"
              opacity: 0.5
              Text {
                  anchors.centerIn: parent
                  text : "NumberAnimation"
              }
      
              MouseArea {
                  anchors.fill: parent
                  onClicked: {
                      animatePosition.start()
                  }
              }
      
              NumberAnimation {
                  id: animatePosition
                  target: animatee
                  properties: "x"
                  from: animatee.x
                  to: animatee.x + 50
                  loops: 1
                  easing {type: Easing.Linear;}
              }
          }
      
          ListView {
              id : content
              x : 400
              y : 300
              width: 300
              height: 200
      
              model : 200
              delegate : Text { text : "Flickable" + index; height : 50 }
          }
      }
      

      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:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes