Game Programming using Qt 5 Beginner's Guide - Second Edition
by Pavel Strakhov, Witold Wysota, Lorenz Haas
Generic animations
Qt Quick provides a number of animation types derived from a generic Animation element that you will never use directly. The type exists only to provide an API common to different animation types.
Let's take a closer look at the animation framework by looking at a family of animation types derived from the most common animation type—PropertyAnimation. As the name implies, they provide the means to animate values of object properties. Despite the fact that you can use the PropertyAnimation element directly, it is usually more convenient to use one of its subclasses that specialises in dealing with the peculiarities of different data types.
The most basic property animation type is NumberAnimation, which lets you animate ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access