July 2016
Intermediate to advanced
300 pages
6h 24m
English
In this example, we will learn how to animate our Graphical User Interface (GUI) elements using Qt's property animation class, part of its powerful animation framework, which allows us to create fluid looking animation with minimal effort.
mainwindow.ui with Qt Designer and place a button on the main window, as shown here:
mainwindow.cpp and add the following line of code at the beginning of the source code:#include <QPropertyAnimation>
mainwindow.cpp and add the following code to the constructor:QPropertyAnimation ...
Read now
Unlock full access