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

ensure that TouchPoints always have velocity

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved: