Hi,
i'm using QwtPlotRenderer to export my plot to a PNG.
qwtRender.setDiscardFlag( QwtPlotRenderer::DiscardBackground, false );
qwtRender.setDiscardFlag( QwtPlotRenderer::DiscardCanvasBackground, false );
plot->setCanvasBackground(Qt::transparent);
qwtRender.setDiscardFlag( QwtPlotRenderer::DiscardBackground, false );
qwtRender.setDiscardFlag( QwtPlotRenderer::DiscardCanvasBackground, false );
plot->setCanvasBackground(Qt::transparent);
To copy to clipboard, switch view to plain text mode
later
qwtRender.renderDocument( plot, file, _currentSettings.format.extention, sizePixelMM, _currentSettings.size.dpi );
qwtRender.renderDocument( plot, file, _currentSettings.format.extention, sizePixelMM, _currentSettings.size.dpi );
To copy to clipboard, switch view to plain text mode
But what i get is my plot with a background of my parent widget.
How can i export a PNG with transparent background?
Thx
Bookmarks