[Qt-interest] Change Svg attribute

Jason H scorp1us at yahoo.com
Thu Apr 1 14:51:09 CEST 2010


I don't know if is yahoo, or the listserv but sometimes messages are delayed for a while.

The QtSvg should be changed to be read-write. (However Qt has a problem with that)
The QtAnimation API should be extended to take an Xpath as a QProperty for animation purposes.



----- Original Message ----
From: Guido Seifert <Wargand at gmx.de>
To: qt-interest at trolltech.com
Sent: Thu, April 1, 2010 8:39:48 AM
Subject: Re: [Qt-interest] Change Svg attribute


> 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
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest



      





More information about the Qt-interest-old mailing list