Home · All Classes · All Functions · Overviews

QML State Element Reference

The State element defines configurations of objects and properties. More...

Properties

Detailed Description

A state is specified as a set of batched changes from the default configuration.

Note that setting the state of an object from within another state of the same object is inadvisible. Not only would this have the same effect as going directly to the second state it may cause the program to crash.

See also States and Transitions.


Property Documentation

changes : list<Change>
default

This property holds the changes to apply for this state

By default these changes are applied against the default state. If the state extends another state, then the changes are applied against the state being extended.


extend : string

This property holds the state that this state extends

The state being extended is treated as the base state in regards to the changes specified by the extending state.


name : string

This property holds the name of the state

Each state should have a unique name.


when : bool

This property holds when the state should be applied

This should be set to an expression that evaluates to true when you want the state to be applied.



Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.7.0