Gunnar Sletta <[EMAIL PROTECTED]> 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 _______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
