July 2016
Intermediate to advanced
300 pages
6h 24m
English
In this recipe, we will learn how to animate the properties of our GUI widgets using the animator feature provided by QML.
Rectangle {
id: myBox;
width: 50;
height: 50;
anchors.horizontalCenter: parent.horizontalCenter;
anchors.verticalCenter: parent.verticalCenter;
color: "blue";
ScaleAnimator {
target: myBox;
from: 5;
to: 1;
duration: 2000;
running: true;
}
}ParallelAnimation { ScaleAnimator { target: myBox; from: 5; to: 1; duration: 2000; } RotationAnimator { target: myBox; from: 0; to: 360; duration: 1000; ...Read now
Unlock full access