resize mdiArea with Mainwindow
-
wrote on 3 Nov 2015, 23:06 last edited by
I have the auto created QWidget , auto named central widget.
For this i have selected vertical layout.Below the QWidget i have the mdiArea.
How can i change this ?
Or is that correct ? -
Add mdiArea to the vertical layout and you should be good to go.
-
wrote on 3 Nov 2015, 23:22 last edited by
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
-
wrote on 5 Nov 2015, 00:01 last edited by
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 ?
-
wrote on 8 Nov 2015, 02:15 last edited by
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 ?
-
wrote on 18 Nov 2015, 00:03 last edited by
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
-
wrote on 19 Nov 2015, 23:08 last edited by
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