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

[MultiPointTouchArea] when grab() is called onGestureStarted, it doesn't get released on touchUp.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.4.0
    • None
    • Mac OSX 10.10.2, Xcode 6.1.1, iPad 2, Android armv7
    • macOS

    Description

      Hi,

      Consider the following code. There is a custom knob inside a flickable. Custom knob touch handling is made with MultiPointTouchArea. To allow the knob to work when layed into a Flickable, onGestureStarted, grab is called.

      import QtQuick 2.3
      import QtQuick.Window 2.2

      Window {
      id: window
      visible: true
      width: 360
      height: 360
      color: "gray"

      Flickable {
      anchors.fill: parent
      contentWidth: window.width*2

      Knob

      { x: 160 y: 160 width: 60 height: 60 }

      }
      }

      With the mouse, if I click outside the knob, the flickable works and the knob doesn't respond anymore to the touch. On a touch device (iOS and Android) the same doesn't happen and the touch continues attached to the knob MultiPointTouchArea

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            sinosoidal Nuno Santos
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes