[Interest] QtSVG deprecated

Uwe Rathmann Uwe.Rathmann at tigertal.de
Wed Jan 11 17:52:46 CET 2012


On Wed, 11 Jan 2012 14:05:40 -0200, Thiago Macieira wrote:

> Can't you pre-rasterise the files and store them on the device's image?
> Sounds like a much better solution to me.

The sizes of the icons are the result of the calculation of QLayouts - I 
don't know them in advance. They might even change during runtime, when 
layout relevant attributes are changing ( f.e the user wants a different 
language ).

>> One idea I had was to "precompile" the SVG images on the PC to
>> something QPicture can load. Unfortunately QPicture seems to be
>> forgotten, when Qt4 moved to a floating based rendering. It can't be
>> scaled properly because the boundingRect is not accurate and in
>> integers only.
> 
> Use PNG.

How does PNG help in the context of scalable vector graphics ?

Uwe




More information about the Interest mailing list