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

Implement PinchHandler.pinchOrigin

XMLWordPrintable

          Q_PROPERTY(PinchOrigin pinchOrigin READ pinchOrigin WRITE setPinchOrigin NOTIFY pinchOriginChanged)
      
          enum PinchOrigin {
              FirstPoint, PinchCenter, TargetCenter
          };
      
      /*!
          \qmlproperty real QtQuick::PinchHandler::pinchOrigin
      
          The point to be held in place, around which the \l target is scaled and
          rotated.
      
          \value FirstPoint
              the first touch point, wherever the first finger is pressed
          \value PinchCenter
              the centroid between all the touch points at the time when the
              PinchHandler becomes \l active
          \value TargetCenter
              the center of the \l target
      */
      

      Right now it has the PinchCenter behavior, but it still seems like others would be useful in some cases.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            srutledg Shawn Rutledge
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes