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

BoundaryRule can only transform an Item around its transformOrigin

    XMLWordPrintable

Details

    Description

      There's a visible issue in qtdeclarative/tests/manual/pointer/pinchAndWheel.qml : if you use the mouse wheel to rotate or scale the rectangle such that it takes the BoundaryRule into overshoot, and then release, returnToBounds() makes it jump into a different position. (You can make it "walk" around by doing that repeatedly.) That's because all it knows how to do is set the scale or rotation property: it doesn't know that the WheelHandler was transforming it around the mouse cursor.

      But this brings us back to the idea that maybe handlers that do arbitrary transforms ought to set the item's transformOriginPoint (and that should be a property so that it becomes visible to QML, too), rather than tweaking x and y to compensate for the transformation.

      Attachments

        Issue Links

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

          Activity

            People

              smd Jan Arve
              srutledg Shawn Rutledge
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change