Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.14
-
None
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
- is required for
-
QTBUG-100636 take BoundaryRule out of Labs to be supported API
- Reported
-
QTBUG-68108 QtLocation: start using Pointer Handlers and get rid of the C++ gesture recognition logic
- Closed
- relates to
-
QTBUG-26423 QQuickItem::transformOriginPoint lacks change notification and is read-only
- Closed
- resulted from
-
QTBUG-68119 add a WheelHandler
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-75486 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
248921,5 | Deprecate Item.transformOrigin, replace with transformOriginPoint | dev | qt/qtdeclarative | Status: NEW | -1 | 0 |