Hi, I have a QMainWindow with two dock widgets, (one in the left and one in the top docking area) and a QMdiArea as central widget with several subwindows.

When I click a button in the menu bar, I want to hide the dock widgets and scale my subwindows in the mdi area to use all the now available space but keep their width/height ratios.

Hiding the dock widgets is easy (hide()), and scaling would be easy too, but I need the size of the area available for the MdiArea before and after the hide() of the dock widgets and I always get the same value for centralWidget()->geometry(), even if I call update() after the hide().

How can I get both the old and the new size to calculate a scaling factor? Or is there another way to achieve my goal?

Ginsengelf

PS: I'm using Qt 4.3.5