[PyQt] Problem with QSvgRenderer.render in PyQt5.14.1?

ian caines ian.caines at gmail.com
Tue Jan 7 04:28:50 GMT 2020


QSvgRenderer does not seem to be working correctly with PyQt5.14.1.  In
particular, calling the render(QPainter, QRectF) method causes the svg
image to be rendered in the wrong location.  It seems like what is
happening is that whatever scaling is being applied to the height and width
of the svg to fit in the QRectF is also being applied to the x and y
coordinates of the QRectF. The issue occurs on both OSX and Windows.  The
same code was working as expected under PyQt5.13.2.  Not sure if this is an
underlying problem/change with Qt?

Best,
Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200106/6718d5ad/attachment.html>


More information about the PyQt mailing list