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

MouseArea propagates every second event to bottom TapHandler (no issue with Qt 6.2.4)

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS

    Description

      MouseArea propagates every second event to bottom TapHandler with iOS with Qt 6.4.1!

      These were no issue in Qt 6.2.4 and also on Android with Qt 6.4.1.

      Example:

      TapHandler 

      { id: tapHandler acceptedButtons: Qt.AllButtons onPressedChanged:

      { console.log("TAP PRESSED"); }

      onTapped: { console.log("TAP TAPPED"); }
      }

      MouseArea 

      { id: museArea anchors.fill: parent acceptedButtons: Qt.AllButtons preventStealing: true onPressed: (event) =>

      { event.accepted = true; console.log("BUTTON PRESSED"); }

      onClicked: (event) => { event.accepted = true; console.log("BUTTON CLICKED"); }

      onDoubleClicked: (event) => { event.accepted = true; console.log("BUTTON DB CLICKED"); }

      }

      What have You changed from Qt 6.2.4 to Qt 6.4.1 ?

       

      ADDED:

      I have added simple example where is 2 rectangles (red in background with TapHandler and blue in foreground with MouseArea).

      If You tap with Your finger on the iPhone iOS on overlapping area of these 2 rectangles several times, You will get: first time event in rec2->mouseArea and second time in rec1->tapHandler.

      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
            eug Eugenijus Rom
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes