Qt 4.8
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
StateGroup Class Reference

The StateGroup element provides state support for non-Item elements. More...

Detailed Description

The StateGroup element provides state support for non-Item elements.

Since
4.7

Item (and all derived elements) provides built in support for states and transitions via its state, states and transitions properties. StateGroup provides an easy way to use this support in other (non-Item-derived) elements.

MyCustomObject {
id: myStateGroup
states: State {
name: "state1"
// ...
}
transitions: Transition {
// ...
}
}
onSomethingHappened: myStateGroup.state = "state1";
}
See also
{qmlstate}{States} {QML Animation and Transitions}{Transitions}, {QtDeclarative}

The documentation for this class was generated from the following file: