PDA

View Full Version : About QSvgRenderer



guher
13th November 2007, 09:21
Hi,
in my application I try to draw a svg in a qgraphicsitem via qsvgrenderer::render ( QPainter * painter, const QRectF & bounds ). While for some svg files, this function draws the svg correctly in the bounds dictated by this function, for some svg files, especially svg files containing viewbox attributes, this function draws the svg file on to some rectangle which is larger than the bounds rectangle specified in this function. I can provide such a svg file upon request. Has anyone come across this behavior before?

Thanks

wysota
22nd November 2007, 11:21
Does the same happen if you use QGraphicsSvgItem?