I'm showing Qwt plots in different tabs of a QTabWidget :


The first tab is "Main" and contains two Qwt plots (curve & spectrogram, in a vertical layout with an exapanding horitzontal and vertical size policy otherwise the plots will not take all the available place - strange strange...).

Then, I go to another tab "Baseline" to load data from a file and replot all the tabs's plots.

My problem : the QwtSpectrogram of the main tab is not showing correctly, the yLeft axis title disappeared and the yRight axis are overflowing :


If I resize the window the plot will be repainted correctly :


How can I fix this ? I called repaint() after replot() but it doesn't fix the problem. It seems that the problem is that the replot is not well done if the plot belongs to a masked tab.

Thanks !