I have two QDockWidgets in a QMainWindow. One horizontal and one vertical.
The Horizontal QDockWidget is created first, for technical reasons, I can not change the order in the creationprocess.

The problem is, that the width of the horizontal QDockWidget equals the width of the QMainWindow and the height of the vertical QDockWidget equals the height of the QMainWindow minus the height of the horizontal QDockWidget.

What I want is the opposite, that the width of the horizontal QDockWidget equals the width of the QMainWindow minus the width of the vertical QDockWidget and the height of the vertical QDockWidget equals the height of the QMainWindow.

How do I do this?