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

Implement PinchHandler.pinchOrigin

    XMLWordPrintable

Details

    Description

          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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes