diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-07-07 06:28:50 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-07-07 06:28:50 (GMT) |
commit | abac02a628242a85b8682893b6604c1b078e4088 (patch) | |
tree | d07b37428a97ec3d3cf64fc99c43786becf1b815 | |
parent | a73e903f523fe0ac15734c6fd37592145673a959 (diff) | |
parent | 1a7b1538e8a9db9e5b921ddcac3d785c0618c7c3 (diff) | |
download | Qt-abac02a628242a85b8682893b6604c1b078e4088.zip Qt-abac02a628242a85b8682893b6604c1b078e4088.tar.gz Qt-abac02a628242a85b8682893b6604c1b078e4088.tar.bz2 |
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-qml-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-qml-team:
Document state fast-forwarding.
-rw-r--r-- | doc/src/declarative/qdeclarativestates.qdoc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/src/declarative/qdeclarativestates.qdoc b/doc/src/declarative/qdeclarativestates.qdoc index 55f38c3..9857894 100644 --- a/doc/src/declarative/qdeclarativestates.qdoc +++ b/doc/src/declarative/qdeclarativestates.qdoc @@ -133,4 +133,26 @@ The \l {declarative/animation/states}{States and Transitions example} demonstrates how to declare a basic set of states and apply animated transitions between them. +\l{Using QML Behaviors with States} explains a common problem when using Behaviors +to animate state changes. + +\section1 State Fast Forwarding + +In order for Transition to correctly animate state changes, it is sometimes necessary +for the engine to fast forward and rewind a state (that is, internally set and unset the state) +before it is finally applied. The process is as follows: + +\list 1 +\o The state is fast forwarded to determine the complete set of end values. +\o The state is rewound. +\o The state is fully applied, with transitions. +\endlist + +In some cases this may cause unintended behavior. For example, a state that changes +a view's \i model or a Loader's \i sourceComponent will set these properties +multiple times (to apply, rewind, and then reapply), which can be relatively expensive. + +State fast forwarding should be considered an implementation detail, +and may change in later versions. + */ |