SVG KPart?

Aaron J. Seigo aseigo at
Thu Nov 15 02:51:16 GMT 2007

On Wednesday 14 November 2007, Aurélien Gâteau wrote:
> Aaron J. Seigo wrote:
> > On Wednesday 14 November 2007, Aurélien Gâteau wrote:
> >> I have been wondering if there is an SVG KPart for KDE4. I need one to
> >> be able to show SVG in Gwenview. If there is none, I could create a
> >> simple one using QGraphicsView. What do you think about this?
> >
> > is QSvgWidget not enough? you probably don't need QGrahpicsView for this,
> > unless you are planning on having multiple objects, etc.
> If QSvgWidget can zoom and pan, then it's enough.

you can make the widget bigger/smaller and set the view box on the renderer 
used internally. i think that should be enough for zoom and pan? you can look 
at the example app in qt-copy/examples/painting/svgviewer for hints...

> My main concern is to 
> avoid duplicating work: I don't want to develop an SVG KPart for KDE4 if
> there is already one.

indeed =)

Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the kde-core-devel mailing list