Now I am trying this:
m_document->print(&printer);
filter.setOptions(options);
printer.newPage();
solarDiagram->print(printer,filter);
m_document->print(&printer);
QwtPlotPrintFilter filter;
int options = QwtPlotPrintFilter::PrintAll;
options &= ~QwtPlotPrintFilter::PrintBackground;
options |= QwtPlotPrintFilter::PrintFrameWithScales;
filter.setOptions(options);
printer.newPage();
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?
Bookmarks