Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.2, 5.12.4
-
Qt 5.6.2 - Clang_64 - MacOS 10.12.3 - MacBookPro Early 2013 - Core i7 - 16GB RAM - NVIDIA GeForce GT 650M 1024 MB & Intel HD Graphics 4000 1536 MB
Description
What is the problem and how to reproduce it:
Use an AnimatedSprite item and set loops to 1 (no repeat animation)
Run project
Wait for animation to be finished
Try to resize window!
What you will see: Animation jumps to start frame
What I expected: Animation remains at current state (completed state which is in the last frame)
Work around: Use following line in the AnimatedSprite
Work Around
AnimatedSprite { id: introAnim width: 200; height: 200 anchors.centerIn: parent source: "qrc:/medias/images/logo_animation.jpg" frameHeight: 512; frameWidth: 512 frameRate: 30 interpolate: false frameCount: 99 loops: 1 frameSync: false onRunningChanged: if(!running) {introAnim.advance(-1); pause();} // <-- The work around trick to keep animation at almost last frame }
Another use case which makes same problem:
Use an AnimatedSprite and set loops to 1. Also animate its position using NumberAnimation just after AnimatedSprite finished (not animator).
Run project
Wait for animation to be finished and animation to be started!
What you will see: Animation jumps to start frame