States and Animations with Qt and QML
Qt provides an easy way to animate widgets or any other objects that inherit the QObject
class through its powerful animation framework. The animation can be used either on its own or together with the state machine framework, which allows different animations to be played based on the current active state of the widget. Qt’s animation framework also supports grouped animation, which allows you to move more than one graphics item simultaneously or move them in sequence, one after the other.
In this chapter, we’re going to cover the following main topics:
- Property animation in Qt
- Using easing curves to control property animation
- Creating an animation group
- Creating a nested animation group
- State machines in Qt
- States, transitions, and animations in QML
- Animating widget properties using animators
- Sprite animation