PDA

View Full Version : PRint plot with Legend



OverTheOCean
26th July 2011, 20:17
Hi there,

l'm trying to print a graph with his legend, everything works fine except the scaling of the legend does not follow the other items of the graph ( axis/ title), legend is always smaller after printing than on the screen.



QwtPlotRenderer renderer;

// flags to make the document look like the widget
renderer.setDiscardFlag(QwtPlotRenderer::DiscardBa ckground, true);
renderer.setLayoutFlag(QwtPlotRenderer::FrameWithS cales, true);
renderer.setLayoutFlag(QwtPlotRenderer::KeepFrames , true);

renderer.renderDocument(this, fileName, QSizeF(150, 100), 85);


am l missing something ?

regards,

Michael

Uwe
27th July 2011, 08:09
No - but without a screenshot and an exported document its hard to say anything useful,

Uwe