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
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