In case anyone is interested, this is what I did:
QImage img(512, 512, QImage::Format_ARGB32);
QwtPlotPrintFilter pf;
pf.setOptions(QwtPlotPrintFilter::PrintAll);
bool use_painter = false;
if (use_painter) {
QPainter painter;
painter.begin(&img);
qpFACS->print(&painter,QRect(0, 0, 512, 512),pf);
painter.end();
} else {
qpFACS->print(img,pf);
}
img.save(path);
where qpFACS is a QwtPlot. Both methods work, producing the bare plot. I haven't found how to get the frame, axes, titles etc. If somebody can tell me what I need to do I'll be grateful.
Gib
Bookmarks