Qt Reference Documentation

Animation: States Example

Files:

\dependshelper/qmlapplicationviewer

The states.qml example shows how an item can change between states, and transitions.qml shows how these state changes can be animated.

Note: Due to deployment configurations transitions.qml is opened by default when running this example. states.qml can be opened by editing the main.cpp file.

states.qml

transitions.qml