Hi! I have created an MDI application (using Qt 4.6) in Qt Creator and added QMdiArea to it. Now if I create new child windows, they created inside the mdiArea. That's completely fine. However, the mdiArea has the fixed size which is neither aligned with the main window, nor changed if the main window resized.
What I'm looking for is the easiest way to:
1) set the initial size of mdiArea to be inherited from the main window, and
2) resize mdiArea automatically when the main window is resized.
If some changes to ui_mainwindow.h
should be made, how to prevent Qt Creator from changing it back to 'normal' each time I change mainwindow.ui
file?
Thanks!