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

More animation types

The animation types we discussed earlier are used for modifying values of types that can be described using physical metrics (position, sizes, colors, angles). However, there are more types available.

The first group of special animations consists of the AnchorAnimation and  ParentAnimation elements.

The AnchorAnimation element is useful if a state change should cause a change to defined anchors for an item. Without it, the item would immediately snap into its place. By using the AnchorAnimation element, we trigger all anchor changes to be gradually animated.

The ParentAnimation element, on the other hand, makes it possible to define animations that should be present when an item receives a new parent. This usually causes ...

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