I would like to have a PNG animation sequence - that reveal the picture and the picture don’t disappear at the end.
I was trying to make an action - but without any luck.
Do you need to maximize the widget at the end of the .png animation? Or do you need to stop the animation at the last frame? By default, the finished animation shows the first frame.
I would like to stop animation at the last frame
See the animation.pma example.
You need to add the following script:
import QtQuick 2.0
Item {
Connections {
target: subItem
onCurrentFrameChanged: if (subItem.currentFrame == 0) subItem.currentFrame = subItem.imagesCount - 1
}
}
- Select the Animation widget
- Open the Interaction tab on the Inspector
- Click add User code
- Paste the script