Chapter 2. States and Animations

In this chapter, we will cover the following recipes:

  • Property animation in Qt
  • Using easing curves to control property animation
  • Creating the animation group
  • Creating the nested animation group
  • State machine in Qt
  • States, transitions, and animations in QML
  • Animation widget properties using animators
  • Spri te animation

Introduction

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

Get Qt5 C++ GUI Programming Cookbook 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.