Home · All Classes · All Functions · Overviews

QML Transition Element Reference

The Transition element defines animated transitions that occur on state changes. More...

Properties

Detailed Description

See also States and Transitions.


Property Documentation

read-onlyanimations : list<Animation>
default

This property holds a list of the animations to be run for this transition.

The top-level animations are run in parallel. To run them sequentially, you can create a single SequentialAnimation which contains all the animations, and assign that to animations the animations property.


from : string
to : string

These properties are selectors indicating which state changes should trigger the transition.

from is used in conjunction with to to determine when a transition should be applied. By default from and to are both "*" (any state). In the following example, the transition is applied when changing from state1 to state2.

 Transition {
     from: "state1"
     to: "state2"
     ...
 }

reversible : bool

This property holds whether the transition should be automatically reversed when the conditions that triggered this transition are reversed.

The default value is false.



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