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

TapHandler goes in invalid state if it was released outside parent

XMLWordPrintable

    • 12f89fb8dda86c61277e3814912013873b1657e6 (qt/qtdeclarative/5.12.1)

      With the following source code:

      Rectangle {
          id: rectangle
      
          implicitWidth: 200
          implicitHeight: 200
          color: tapHandler.pressed ? "red" : "grey"
      
          TapHandler {
              id: tapHandler
      
              onCanceled: console.debug("onCanceled")
              gesturePolicy: TapHandler.DragThreshold
          }
      }
      

      you can get the following problems:

      • Press rectangle with mouse
      • Drag the mouse outside the rectangle
      • Release mouse
      • Try tap rectangle with finger (touch) now - It does not work, as long as you do not tap earlier with the mouse there

      or

      • Press rectangle with finger (touch)
      • Drag the finger outside the rectangle
      • Release finger
      • Try tap rectangle with mouse now - It does not work, as long as you do not tap earlier with the finger (touch) there

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

            srutledg Shawn Rutledge
            permotion88 Karol Polak
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes