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::DiscardBackground, true);
renderer.setLayoutFlag(QwtPlotRenderer::FrameWithScales, true);
renderer.setLayoutFlag(QwtPlotRenderer::KeepFrames, true);
renderer.
renderDocument(this, fileName,
QSizeF(150,
100),
85);
QwtPlotRenderer renderer;
// flags to make the document look like the widget
renderer.setDiscardFlag(QwtPlotRenderer::DiscardBackground, true);
renderer.setLayoutFlag(QwtPlotRenderer::FrameWithScales, true);
renderer.setLayoutFlag(QwtPlotRenderer::KeepFrames, true);
renderer.renderDocument(this, fileName, QSizeF(150, 100), 85);
To copy to clipboard, switch view to plain text mode
am l missing something ?
regards,
Michael
Bookmarks