Discussion:
Drawing a path in QML through animation
(too old to reply)
Jeffrey Brendecke
2018-11-16 22:41:19 UTC
Permalink
Is there a way to animate the drawing of a path as an item moves along it?

* Initial condition: Only the item (e.g., an arrowhead) is visible
* End condition: The stroked path along which the item travelled is visible from the initial point to the item's final location
Jason H
2018-11-19 16:01:27 UTC
Permalink
I don't know for sure, but I would probably try to use a custom QEasingCurve for both X, Y, and angle. http://doc.qt.io/qt-5/qeasingcurve.html
This way you can still use property bindings.
Sent: Friday, November 16, 2018 at 5:41 PM
Subject: [Interest] Drawing a path in QML through animation
Is there a way to animate the drawing of a path as an item moves along it?
* Initial condition: Only the item (e.g., an arrowhead) is visible
* End condition: The stroked path along which the item travelled is visible from the initial point to the item's final location
_______________________________________________
Interest mailing list
http://lists.qt-project.org/mailman/listinfo/interest
Continue reading on narkive:
Loading...