3
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 ...
Get Qt 6 C++ GUI Programming Cookbook - Third 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.