PDA

View Full Version : How to display .svg image in Qt



GT Development
26th September 2011, 08:14
Hi,

Can anyone tell me how to display the .svg images in Qt. I have placed all the images using Qt designer. But when i build and run the application the SVG images is not displayed.

Regards,
Priya

berzasnon
26th September 2011, 20:43
Go to your app's .exe file folder. Create a new folder called imageformats, and copy in that folder the file qsvg4.dll, usually located at (QtSDK folder)\Desktop\Qt\4.7.4\mingw\plugins\imageformat s

sergio87
27th September 2011, 15:01
Yoy can see the Qt example svgviewer: http://doc.qt.nokia.com/stable/painting-svgviewer.html

Regards

GT Development
28th September 2011, 07:03
Hi,

I created a new folder called imageformats and copied qsvg4.dll. Still it is not displaying the svg images.

Regards,
Priya

ChrisW67
28th September 2011, 07:17
I have placed all the images using Qt designer
If the SVG "images" are icons then also create an "iconengines" folder and copy the "qsvgicon4.dll" file.

If it still doesn't work then you will need to provide more information rather than just a "still doesn't work" message.