[Qt-jambi-interest] Restart SVG Animation
Gunnar Sletta
gunnar at trolltech.com
Mon Aug 11 08:34:55 CEST 2008
Dimitri Frederickx wrote:
> Hi,
>
> I'm creating a QGraphicsSvgItem to display an svg file with
> animations. When I open the item, the animation automatically starts.
>
> Is there a way to stop the animation and start it back? And is there a
> method for resetting the animation (to the first frame)?
Hi Dimitri,
You can access the item's svg renderer using
QGraphicsSvgItem::renderer(). Using the renderer you can
setCurrentFrame() which should give you what you want.
best regards,
Gunnar
More information about the Qt-jambi-interest
mailing list