[Qt-jambi-interest] Restart SVG Animation
Dimitri Frederickx
info at dimitrifrederickx.be
Mon Aug 11 17:48:55 CEST 2008
Gunnar Sletta <gunnar at trolltech.com> wrote:
> 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
>
Oops, I've overlooked that method. It seems that in the Qt 4.4 documentation
(http://doc.trolltech.com/4.4/qsvgrenderer.html) this method is not documented.
Is there also a possibility to stop/pauze/start the animation?
/Dimitri
More information about the Qt-jambi-interest
mailing list