PDA

View Full Version : How to replace Qt svg render engine?



RolandHughes
24th January 2014, 19:02
Hello,

Qt 4.8.x on Linux.

The svg render engine is pretty awful. Graphics we get have both transparent backgrounds and some drop shaded borders, When rendered with Qt they are just ghastly. Images look phenom in inkscape. They also look great on the MAC/Apple products which created them and in that dead platform known as Windows.

I see this problem has existed since the days of Nokia owning Qt so I'm guessing most developers found a way to load a different rendering engine to get around it.

Anyone done it? If so, how?

Thanks,
Roland

ChrisW67
24th January 2014, 20:29
Qt has never claimed to support anything more than the static features SVG Tiny which does not contain a lot of the advanced features of SVG 1.1. QtSvg 5.0: Rendering SVG Files (http://qt-project.org/doc/qt-5.0/qtsvg/svgrendering.html)

To use something else find a suitable SVG C/C++ library, write the code, and link it to your application. Librsvg might be a option. Once you have a rasterised view of your SVG then can use Qt to display (probably via QImage).