Stop animatedimage
-
Hello.
Is it possible to stop the gift animation (triggered by animatedimage) after e.g. two cycles (a cycle is displaying the animation from start to finish)? If so, what procedure to use?
-
@J-Hilk Thank you for your response. I tested these two calls and when using them the animation does not start at all. My point is that the animation should be displayed in full once or twice, and with the playing and paused option, the animation does not start at all. Is there any other option to stop the animation from displaying once or several times?
-
@J-Hilk Thank you for your response. I tested these two calls and when using them the animation does not start at all. My point is that the animation should be displayed in full once or twice, and with the playing and paused option, the animation does not start at all. Is there any other option to stop the animation from displaying once or several times?
-
@jsulm probably only on creation.
If I understand @Darq correctly this is, what he wants.
AnimatedImage{ id:anImage anchors.fill: parent source: "qrc:/BusyIndicator.gif" property int maxNumberOfFullCycles: 2 property int currentCycle: 0 onCurrentFrameChanged: { console.log("CurrentFrame", currentFrame, frameCount) if(currentFrame >= frameCount -1) currentCycle++ if(currentCycle >= maxNumberOfFullCycles) anImage.paused = true } }