[Interest] Fonts extremely large when printing QGraphicsScene

Patrick Stinson patrickkidd at gmail.com
Sun Mar 5 17:09:20 CET 2017


Hello!

I have a QGraphicsScene that looks like this:



and then when I print to pdf using this code:

        printer = QPrinter(QPrinter.HighResolution)
        printer.setOutputFormat(QPrinter.PdfFormat)
        printer.setOutputFileName('Untitled.pdf')
	painter = QPainter()
        painter.begin(printer)
        self.scene.render(painter)

it looks like this:



Thoughts? Thanks!
-Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170305/971ed1ab/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2017-03-05_08-06-13.jpg
Type: image/jpeg
Size: 84020 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170305/971ed1ab/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled.jpg
Type: image/jpeg
Size: 48892 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170305/971ed1ab/attachment-0001.jpg>


More information about the Interest mailing list