[Qt-interest] Making SVG

R. Reucher rene.reucher at batcom-it.net
Fri Feb 13 11:16:55 CET 2009


On Fri February 13 2009 11:11:36 R. Reucher wrote:
> On Fri February 13 2009 11:08:44 Arnold Krille wrote:
> > On Friday 13 February 2009 11:04:09 Knapp wrote:
> > > I would like to use SVG in my program to make maps and display the
> > > maps with QT. As best as I can tell QT only displays but does not give
> > > any tools for making or manipulating SVG. Does anyone know of a good
> > > Lib that can do this? Bonus points for it being LGPL and having python
> > > too.
> >
> > Maybe I missed something but svg is in fact xml. And Qt does have lots of
> > classes to deal with that. So at least at the basic level Qt supports
> > you...
>
> Correct. You'd simply have to feed QSvgRenderer with the XML data... and
> that can be created dynamically.
Another option seems to be QSvgGenerator which is a QPaintDevice meaning that 
you can paint to it via a QPainter. The data can then be fed to a 
QSvgRenderer again...
-- 
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/

"Cutting the space budget really restores my faith in humanity.  It
eliminates dreams, goals, and ideals and lets us get straight to the
business of hate, debauchery, and self-annihilation."
		-- Johnny Hart




More information about the Qt-interest-old mailing list