QCustomPlot Discussion and Comments

not all Qt Versions seem to have QPrinter::Color as defaultReturn to overview

A line after line 10112 in bool QCustomPlot::savePDF(const QString &fileName, bool noCosmeticPen, int width, int height)
could therefore be added, what do you think?
printer.setFullPage(true);
printer.setColorMode(QPrinter::Color);
QRect oldViewport = viewport();
(line of question bold)
It solves the problem for me.

Great Software by the way

Greetings
Wolfgang

The line will be added in the next patch release.

It would be interesting to know which system that is, i.e. OS, Qt version and Compiler.


cat /proc/version
Linux version 2.6.32-358.23.2.el6.x86_64 (mockbuild@sl6.fnal.gov) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Wed Oct 16 11:13:47 CDT 2013
Some libraries:
libQtCore.so.4.6.2
libQtGui.so.4.6.2

The funny thing is, we are developing a scientific program using qt and qcustomplot and have here 30 PCs that are seemingly identical and so far only that one showed this behavoir, evererything seems fine there. We also checked which versions were installed but they seemed to be identical. So it is more likely to be a Qt bug, albeit we cannot locate it.