[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Problem with QSvgRenderer.render in PyQt5.14.1?
From:       ian caines <ian.caines () gmail ! com>
Date:       2020-01-07 4:28:50
Message-ID: CAG0iR72_vuC1Y0A+QQwsfT276ZBkaXALpw1VugCz=U1bEHWa6A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

[Attachment #5 (text/html)]

<div dir="ltr"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">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?</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Best,</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Ian</span><br></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic