guher
13th November 2007, 08: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
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