DockWidgetAreas size
-
I have two little QDockWidgets (size 200,100) on my QMainWindow and I would like that the DockWidgetAreas have the same size that the two QDockWidgets (200, 200) in order to have more space for the central widget. At the moment the DockWidgetAreas covers the entire height of the QMainWindow. Is there a way to do it?
The QDockWidjets are defined as follow:
@QDockWidget *dock = new QDockWidget( tr("Dock"), centralWidget); dock->setAllowedAreas(Qt::AllDockWidgetAreas); QWidget *widg = new QWidget(dock); widg ->setMaximumSize(200, 100); addDockWidget(Qt::RightDockWidgetArea, dock);@
-
In order to clear my question I did some draws. I would like "that":https://www.dropbox.com/s/nvyci67nza7hauh/DockAreasProblem.jpeg.png but I have "that": https://www.dropbox.com/s/q2j0sekskhh8ogz/DockAreaProblemTrue.jpeg.png at the moment. So I would like to resize the dock areas, is there any way to do it?