Game Programming using Qt 5 Beginner's Guide - Second Edition
by Pavel Strakhov, Witold Wysota, Lorenz Haas
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access