QwtPlotRenderer for multiple QwtPlot
Hello!
I'ld like to export to a pdf [using QwtPlotRender] various QwtPlot, not just one. How could I do that?
For now what I do is:
Code:
QwtPlotRenderer renderer;
renderer.exportTo( graphCandle, "test.pdf" );
and I want to export other two QwtPlot besides graphCandle in the same .pdf.
Is there a way?
Thanks,
Momergil
Re: QwtPlotRenderer for multiple QwtPlot
Find your own layout ( = bounding rectangles in paint device coordinates ) where you want to have your plots and use
renderTo and export() are only convenience APIs calculating a rectangle from the paint device metrics and calling in the end render(). Have a look at the implementation of these methods if you are unsure how to setup a QPainter to render a PDF document.
Uwe