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

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.