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
_______________________________________________
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to