O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required