Now I am trying this:
Qt Code:
  1. m_document->print(&printer);
  2.  
  3.  
  4. int options = QwtPlotPrintFilter::PrintAll;
  5. options &= ~QwtPlotPrintFilter::PrintBackground;
  6. options |= QwtPlotPrintFilter::PrintFrameWithScales;
  7. filter.setOptions(options);
  8. printer.newPage();
  9. solarDiagram->print(printer,filter);
To copy to clipboard, switch view to plain text mode 
where solarDiagram is the pointer to a QwtPlot.
But as you can imagine, the print contains only the plot and not the textdocument.
Thereis a way to tell QTextDocument to "paint" on printer?
Or, how can I bind two printing on the same QPrinter?

I tried the followind code
Qt Code:
  1. QPrinter printer(QPrinter::HighResolution);
  2. m_document->setPageSize(printer.pageRect().size());
  3.  
  4.  
  5. printer.setOutputFileName(fileName);
  6. ....
  7.  
  8. p.begin(&printer);
  9. m_document->drawContents(&p,printer.paperRect());
  10. printer.newPage();
  11. solarDiagram->print(&p,printer.paperRect(),filter);
  12. p.end();
To copy to clipboard, switch view to plain text mode 
but the textdocument is too small to be seen in the pdf printout, and the plot is printed in the correct size and with high resolution (pdf).
Why the textdocument is not rendered in the correct size?