Qt 5.2
Qt Widgets
States Example
Qt 5.2.1 Reference Documentation
States Example
The States example shows how to use the Qt state machine to play animations.
Files:
animation/states/main.cpp
animation/states/states.pro
animation/states/states.qrc