Hello,

I am trying to implement an application in which central widget of the main window is
a MDI area in which I create a subwindow with a spectrogram plot. The issue I have is that
if the spectrogram has a rescaler (in order to preserve aspect ratio) replotting/refreshing
of the sub window does not work correctly.

To illustrate the problem I'm seeing in my application I have modified spectrogram example
by adding MDI area as a central widget to the main window. After clicking "Increase size"
button only the area that was previously occupied by the window is repainted. Please see
attached picture. Also if I create two sub windows side by side and the increase the size
of the first one so that it overlaps the second one, then after decreasing the size of the first
window the second one is not refreshed. (see the third picture).

I will appreciate if somebody can try to reproduce this behavior and of course can suggest
solution.

Thanks,
Dusan

spectrogram_mdi_2.jpgspectrogram_mdi_1.jpgspectrogram_mdi_3.jpg

spectrogram_mdi.tar.gz