[Qt-qml] QML animations

bea.lam at nokia.com bea.lam at nokia.com
Fri Dec 2 19:19:49 CET 2011


Hi Harri,

On 02/12/2011, at 2:06 AM, ext Harri Pasanen wrote:

> I'm trying to wrap my head around QML animations.
> 
> I'm having hard time animating anything that is not linear motion.
> If I'd like the animation to follow a path (or curve), how should I go 
> about it?

In QtQuick 1, path support is restricted to use in PathView.

In QtQuick 2, there are new PathAnimation and PathInterpolator elements which support exactly these needs. PathAnimation takes a QML item and a Path object, and animates the item along the path. PathInterpolator has a 'progress' property that can be animated, and then a QML item's x and y can be bound to the PathInterpolator's x and y values. 

regards,

Bea



More information about the Qt-qml mailing list