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

[REG 6.2.4-6.3.2] Using PinchHandler for Flickable's child makes the Flickable transparent for touch events

    XMLWordPrintable

Details

    • macOS
    • 7ef3bee4f (dev), b0541aa82 (6.5), 0e61fbf8d (6.5.0), ffddb966d (tqtc/lts-6.2)

    Description

      While investigating some strange bug with Handlers in my own app I've found strange bug in Qt - using PinchHandler for Flickable's child makes the Flickable's transparent for touch events. As soon as I can see this is regression at some point after 6.2.4.

      Code sample:

      import QtQuick
      
      Window {
          width: 640
          height: 480
          visible: true
      
          TapHandler {
              onTapped: {
                  color = Qt.rgba(Math.random(1), Math.random(1), Math.random(1), 1)
              }
          }
      
          Flickable {
              anchors.fill: parent
              contentWidth: content.width
              contentHeight: content.height
              Rectangle {
                  id: content
                  width: 200
                  height: 200
                  color: 'red'
                  PinchHandler {}
              }
          }
      }
      

      See video Screen Recording 2022-11-25 at 23.06.26.mov

      Steps to reproduce:

      1. Pinch red rectangle few times
      2. Click the left button several times, at some point all clicks will start to propagate to the underlying TapHandler (it changes the window's color when processing touches)

      Reproduces at least on macOS with touchpad.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-108896
          # Subject Branch Project Status CR V

          Activity

            People

              srutledg Shawn Rutledge
              studiosus Vladimir Belyavsky
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: