Hi!

I'm trying to print a QwtPlot to a .pdf file. The code is:

Qt Code:
  1. QPrinter printer( QPrinter::HighResolution );
  2. printer.setOutputFormat( QPrinter::PdfFormat );
  3. printer.setOutputFileName( fileName );
  4.  
  5. qwtPlot()->print(printer);
To copy to clipboard, switch view to plain text mode 

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?