PDA

View Full Version : stretch leftmost QDockingWidget all the way to the bottom



tuli
16th June 2018, 09:13
Hey,

I am once again playing with Qt's Docking system.

I cant seem to get the following simple scenario to work:

1. There are two docked docking widgets, one docked at the bottom, one at the left side.
2. I want the left-side one to stretch all the way to the bottom.


It looks like no matter what I do, programatically or manually, the bottom docking widget always takes up all the space till the left/right edge of the QMainWindow.


An illustration of the situation:

https://i.imgur.com/UTVlD2d.png


Essentially I want the green-shaded area to be covered by one docking widget.


How can I achieve this?

d_stranz
16th June 2018, 21:04
Look at QMainWindow::setCorner(). I think it will do what you want. You may have to call it twice with two different Corner arguments if you want the left dock area to occupy the entire vertical space.