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

Animation framework in Qt Quick

In Chapter 11, Introduction to Qt Quick, we implemented a simple animation using Qt Quick states and transitions. We will now deepen our knowledge on this topic and learn how to add some dynamics into the user interfaces we create. Thus far, books cannot contain moving pictures, so you will have to test most things we describe here yourself by running the provided Qt Quick code.

Qt Quick provides a very extensive framework for creating animations. By that, we don't mean only moving items around. We define an animation as changing an arbitrary value over time. So, what can we animate? Of course, we can animate item geometry. However, we can also animate rotation, scale, other numeric values, and even colors, ...

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