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 ...

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.