[Qt-interest] Change Svg attribute

Guido Seifert Wargand at gmx.de
Thu Apr 1 14:39:48 CEST 2010


> I suggest loading it as a QByteArray/QString and replacing the color or
> whatever using QString's or QByteArray's ::replace(), then load that.

That's what I meant when I wrote "What you can do is a simple search and replace". :-)

It is still ugly and the performance is terrible. However, for simple colour changes of buttons it is fine. Text changes can be acceptable when the change frequency is not too high. In all other cases some sort of caching mechanism is advisable, since permanent rerendering of a svg file has very quickly a tremendous performance impact.


Guido

 

 
-- 
NEU: GMX DSL für 19,99 EUR/mtl. und ohne Mindest-Laufzeit!
http://portal.gmx.net/de/go/dsl02



More information about the Qt-interest-old mailing list