Stop animatedimage
Unsolved
QML and Qt Quick
-
@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?
-
@Darq
Settingplaying
to false orpaused
to true is not going to start an animation, nor can these alter the fact that you have started the animation before these calls. If you don't show the code you have tried which does not work nobody can say more. -
@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 } }