[PyQt] Pixel size issues with QPainter, QLabel and QSvg

matameko info at matameko.de
Tue Aug 7 10:16:51 BST 2012


Digging a little deeper for pixel size issue #4, i found out that 

QtSvg.QSvgRenderer.boundsOnElement

does not give the right size for text elements, since the svg text element
has no "width" parameter:

http://stackoverflow.com/questions/11253734/qsvgrenderer-boundsonelement-always-returns-size-0-0-for-text-elements
http://stackoverflow.com/questions/11253734/qsvgrenderer-boundsonelement-always-returns-size-0-0-for-text-elements 

http://stackoverflow.com/questions/1636842/svg-text-element-width
http://stackoverflow.com/questions/1636842/svg-text-element-width 

Is it possible to access kind of a "getBBox()" function from within python
to get the width of the svg text element?











--
View this message in context: http://python.6.n6.nabble.com/Pixel-size-issues-with-QPainter-QLabel-and-QSvg-tp4984221p4984309.html
Sent from the PyQt mailing list archive at Nabble.com.


More information about the PyQt mailing list