Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0, 5.3.2
-
None
-
Windows 7
-
04912b6a3bcff9087d0679b224cfccee3c05bd10
Description
When painting to a QPrinter object with a QPainter object, the colour of cosmetic lines is not shown. Instead, they are all printed in black, even with the printer colour mode set to colour (printer.setColorMode(QPrinter::Color)). However, when painting to a QGraphicsView object the colours appear correctly.
Oddly, it seems that in order for the colour to be shown when painting to the printer object, the line width must be set >= 1. Setting the pen width to 1 is not desirable, as I apply a matrix transform to the painter and always want the line width to only be 1 pixel wide, independent of the transformation set on the painter.
I would welcome any workaround for this issue.
Attachments
Issue Links
- is required for
-
QTBUG-37693 QtPrintSupport - Painting Issues
- Open
-
QTBUG-37713 QtPrintSupport - 5.3 issues
- Open
For Gerrit Dashboard: QTBUG-33611 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
96765,2 | Don't use cosmetic GDI pens as this is already accounted for | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |