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

ensure that TouchPoints always have velocity

    XMLWordPrintable

Details

    • 1fdbbb49d9f2d2bb62e151a29e5615031af6606a (qt/qtbase/dev), 0c69b2995 (6.4), 5fa585a9d (dev)

    Description

      import QtQuick 2.0
      import QtQuick.Window 2.0
      
      Window {
          width: 640; height: 480; color: "black"; visible: true
      
          Rectangle {
              anchors.fill: parent
              anchors.margins: 50
      
              MultiPointTouchArea {
                  anchors.fill: parent
                  minimumTouchPoints: 1; maximumTouchPoints: 5
                  touchPoints: [
                      TouchPoint { id: touch1
                          onXChanged: console.log("pressed " + pressed + " velocity " + velocity)
                      }
                  ] }
          }
      }
      

      I'm seeing zero velocity on Linux. So far I think we depend on the platform to provide velocity, but we could also synthesize it when it's not already provided by tracking the distance moved since the last update. That could be done either in the platform plugin or at the time that the QTouchPoint is created or updated.

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              srutledg Shawn Rutledge
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: