Vertical and horizontal QDockWidget, priority?
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?
Re: Vertical and horizontal QDockWidget, priority?
I found the solution in the manual:
Code:
void QMainWindow::setCorner ( Qt
::Corner corner, Qt
::DockWidgetArea area
)
Quote:
Sets the given dock widget area to occupy the specified corner.
See also corner().