StateGroup QML Type
Provides built-in state support for non-Item types. More...
Import Statement: | import QtQuick 2.11 |
Properties
- state : string
- states : list<State>
- transitions : list<Transition>
Detailed Description
Item (and all derived types) 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) types.
See also Qt Quick States, Transitions, and Qt QML.
Property Documentation
state : string |
This property holds the name of the current state of the state group.
This property is often used in scripts to change between states. For example:
If the state group is in its base state (i.e. no explicit state has been set), state
will be a blank string. Likewise, you can return a state group to its base state by setting its current state to ''
.
See also Qt Quick States.
transitions : list<Transition> |