PDA

View Full Version : How to include the overlay when printing



LaminateFloor
12th February 2015, 14:50
I've added basic print support which works well. However, I also use QwtPlotOverlay in order to put markers in the plot and I want them to be in the plot as well when printing. It seems like exportTo does not include any attached QwtPlotOverlays. Is there a way so that the overlays are rendered together with the plot just like you get it when updating the plot to the screen when printing?

Uwe
13th February 2015, 07:23
Is there a way so that the overlays are rendered together with the plot just like you get it when updating the plot to the screen when printing?
No you would have to translate the overlays into plot items or write some code ( f.e by overloading QwtPlotRenderer::renderCanvas() ) that draws the stuff from the overlays.

Uwe