Quote Originally Posted by Uwe View Post
Neither QPixmap nor QwtPlot: you can't grab something that is not already there.

1) The geometry of the plot is triggered by resize events. I haven't checked it myself, but I expect that a plot, that is on a hidden tab, that has never been shown, never got one.
The images are there. I got them using the same code for the replay of a single data file. But after I tried to apply my application to multi data files, the code stops working. Since the QTimer event does not run until the FOR loop for multi-file stops.

2) The content of the plot is rendered by QwtPlot::replot. If you don't call it manually and autoReplot is off, the first replot is done in QwtPlot:olish, what is also not called, if the tab has not been shown once.
I called QwtPlot::replot(), polish(), and QTabWidget::showPage() before printing a tab. None of them works.

So I recommend to call QwtPlot::replot manually (after construction) and again, use QwtPlot:rint, that doesn't need resizeEvents and is the better solution anyway.

HTH,
Uwe
I am going to try QwtPlot:rint(), and let you guys know what will happen.

Thanks again.