aleks
12th January 2009, 14:17
Hi!
I'm trying to print a QwtPlot to a .pdf file. The code is:
QPrinter printer( QPrinter::HighResolution );
printer.setOutputFormat( QPrinter::PdfFormat );
printer.setOutputFileName( fileName );
qwtPlot()->print(printer);
The resulting .pdf file is as expected, except from the line thickness of the curves. All curves are printed with a line thickness of 1, regardless of which QPen the curves are using.
Have anyone experienced the same problem, or know how to fix it?
I'm trying to print a QwtPlot to a .pdf file. The code is:
QPrinter printer( QPrinter::HighResolution );
printer.setOutputFormat( QPrinter::PdfFormat );
printer.setOutputFileName( fileName );
qwtPlot()->print(printer);
The resulting .pdf file is as expected, except from the line thickness of the curves. All curves are printed with a line thickness of 1, regardless of which QPen the curves are using.
Have anyone experienced the same problem, or know how to fix it?