summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2011-07-07 03:10:35 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2011-07-07 03:36:06 (GMT)
commit1a7b1538e8a9db9e5b921ddcac3d785c0618c7c3 (patch)
treed07b37428a97ec3d3cf64fc99c43786becf1b815 /doc/src/declarative
parentbdae42967cd7fa9eb0182e1f25c1e743f35835f7 (diff)
downloadQt-1a7b1538e8a9db9e5b921ddcac3d785c0618c7c3.zip
Qt-1a7b1538e8a9db9e5b921ddcac3d785c0618c7c3.tar.gz
Qt-1a7b1538e8a9db9e5b921ddcac3d785c0618c7c3.tar.bz2
Document state fast-forwarding.
Change-Id: Idea5adf70f2ed693e0eac9d58e2ae298704304a2 Task-number: QTBUG-16049 Reviewed-by: Bea Lam
Diffstat (limited to 'doc/src/declarative')
-rw-r--r--doc/src/declarative/qdeclarativestates.qdoc22
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.
+
*/