Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.6, 5.15
Description
The code below on started doesn't stop(), complete() or running = false.
alwaysRunToEnd must be false or the loops do not be Infinite (but it will loop the specified number), which doesns't make for a smooth transition.
This might be fixed but I did not find a bug report and could not test on a newer Qt version.
SequentialAnimation { id: seqAnim loops: Animation.Infinite alwaysRunToEnd: true OpacityAnimator { target: whiteRect; from: 1; to: 0.6; duration: 200 } OpacityAnimator { target: whiteRect; from: 0.6; to: 1; duration: 200 } // disable alwaysRunToEnd and this for workaround onStopped: whiteRect.opacity = 1 }
Attachments
For Gerrit Dashboard: QTBUG-82890 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
316391,14 | Fix alwaysRunToEnd==true prevented complex Anim from stopping | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
317082,2 | Fix alwaysRunToEnd==true prevented complex Anim from stopping | 5.15 | qt/qtdeclarative | Status: MERGED | +2 | 0 |