resize mdiArea with Mainwindow
-
I think that is what i done, but it still desn't work
-
So what you want is to put all layout margins at 0 so your mdiArea widget will take the whole place
-
I have done that, but the mdi area still does not scale out
-
The question is going to be silly but did you just put it over the QMainWindow or did you explicitly clicked the layout vertically menu entry ?
-
i clicked the vertical layout manualy on the central widget.
Also i cant put the mdi area over it. -
What do you mean by you can't put the mdi area over it ?
-
I thougt i could mabey drag'n drop it
Here are all stepps i have done
Create Project with Widget
Created a mdiArea with designer
try to resize with code -
QWidget or QMainWindow ? In any case, you only need to put the QMdiArea in a layout on the widget
-
Its a QT Widged Application
So i think it auto creates a MainWindow ??
I set the layout to vertical (see pictures in last postes)
-
MainWindow can be a QMainWindow or a QWidget depending on what parameter you choose