PDA

View Full Version : SVG module



mind_freak
19th August 2009, 06:12
hii
i don't know how to use SVG module even how to render svg images.......
Is der any software that i have to install before doing SVG programming ?????

If possible help with a small code snippet..

thanks :confused:

yogeshgokul
19th August 2009, 06:41
Just add following line in your .pro file to get SVG support in your application.

QT += svg

The easiest way to render SVG files is to construct a QSvgWidget and load an SVG file using one of the QSvgWidget::load() functions.

mind_freak
19th August 2009, 19:38
hi
thanks for reply
but i want somewhat animation:)............is their any specife class that i have to use while rendering SVG.

i request you to plz help with me so sort of a smalll code so that i can understand properly.....

yogeshgokul
20th August 2009, 07:32
The GIF files provide animation. And you need to use QMovie for that.

mind_freak
20th August 2009, 12:51
this is true that all the SVG file can be rendered..???

i mean can i get 3-D view for SVG files???

thanks

yogeshgokul
20th August 2009, 12:53
this is true that all the SVG file can be rendered..???
i mean can i get 3-D view for SVG files???
thanks
Give it a try. Let us also know the results. This will be great to know.
All the best :)

ChrisW67
21st August 2009, 05:01
The SVG support is limited to static features of SVG Tiny : this does not include animated SVG or scripting AFAICT. See QtSVG module.