PDA

View Full Version : Vertical and horizontal QDockWidget, priority?



Teuniz
13th June 2010, 10:14
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?

Teuniz
14th June 2010, 10:25
I found the solution in the manual:


void QMainWindow::setCorner ( Qt::Corner corner, Qt::DockWidgetArea area )



Sets the given dock widget area to occupy the specified corner.

See also corner().