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