[Qt-qml] Top-level Animation element, not pauseable/stoppable?
Charley Bay
charleyb123 at gmail.com
Fri Nov 5 22:44:31 CET 2010
Update, I've found a work-around, which is to explicitly set "paused" to
each of the nested SequentialAnimation instances. However, since the docs
explicitly say you shouldn't need to do this (setting paused/running
property on the parent ParallelAnimation or SequentialAnimation should
propagate to nested animations), I'm entering it as a ticket:
//FILE: MyParallelAnimation.qml
ParallelAnimation {
id: myParent
loops: Animation.infinite
running: true
SequentialAnimation on someVal1 { id: myId1; loops: Animation.infinite;
..... }
SequentialAnimation on someVal2 { id: myId2; loops: Animation.infinite;
..... }
SequentialAnimation on someVal3 { id: myId3; loops: Animation.infinite;
..... }
onPausedChanged: {
// WORK-AROUND, WILL REMOVE WHEN FIXED IN QML ?4.X?
myId1.paused = myParent.paused;
myId2.paused = myParent.paused;
myId3.paused = myParent.paused;
}
}
Now, it works fine, I can pause/resume as needed. ;-))
Entered as ticket: <http://bugreports.qt.nokia.com/browse/QTBUG-15083>
--charley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20101105/be3cd043/attachment.html
More information about the Qt-qml
mailing list