Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.6.0, 5.7.0 Alpha
-
None
Description
Hello,
It would be great to enhance AnimatedImage (and therefore QMovie), emitting a signal when a loop of the GIF source is finished, in order to trigger an action at the end of an animation. At the moment, we must do as below to check for the end of a loop :
AnimatedImage { // ... onFrameChanged: { // Is this the last frame? // Btw, this code is wrong since the last frame hasn't been played yet if (currentFrame === frameCount - 1) { doSomething(); } } }
The associated issue is bad performances on mobile platforms due to the number of JS calls, because each frame will trigger this function.
Cheers,
Louis