[Qt-qml] "RotationAnimation: setRunning() cannot be used on non-root animation nodes"
Eduardo Fleury
eduardo.fleury at openbossa.org
Mon Jul 19 20:38:11 CEST 2010
Both the RotationAnimation and the ColorAnimation are nodes of a higher
level group animation, in this case the Parallel Animation. That means you
should not start or stop the child animations directly. Instead, give the
top animation an ID and call start and stop from there.
On Mon, Jul 19, 2010 at 3:30 PM, Stephen Collyer
<scollyer at netspinner.co.uk>wrote:
> The following code generates the warning in the subject line.
> Can anyone tell me what is causing this ?
>
> Item
> {
> ..
> Text
> {
> id: goodbye
> text: "Goodbye"
> color: "red"
> anchors.horizontalCenter: page.horizontalCenter
> anchors.verticalCenter: page.verticalCenter
> rotation: 0
> }
>
> ParallelAnimation
> {
> RotationAnimation
> {
> id: rot
> target: goodbye
> loops: Animation.Infinite
> from: 0
> to: 360
> duration: 4000
> }
> ColorAnimation
> {
> target: goodbye
> from: "red"
> to: "blue"
> }
> }
> }
>
> --
> Stephen Collyer
>
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml
>
>
--
Eduardo M. Fleury
OpenBossa - INdT
http://eduardofleury.com/
http://www.openbossa.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100719/b596e41b/attachment.html
More information about the Qt-qml
mailing list