PDA

View Full Version : QDockWidget unusual layout



Kryzon
21st October 2014, 11:52
Hello.
I've been trying to get the following layout with QDockWidgets in QtDesigner:

http://s10.postimg.org/by42d8ek9/qt_dock.png

Widget number 1 is a toolbar, and 2 and 3 are standard dock widgets. The white space can be the central widget, but it's unnocupied for the moment.
When I try to insert widget number 3, it starts from the top and goes down until it meets widget number 2. The total height of widget number 3 is being limited by widget 2.
In my orignal layout, however, I want widget number 3 to be inserted and go all the way down to the bottom of the window, making widget 2 recede horizontally to give it space. So when widget 3 is inserted, widget 2 would diminish in width. The final layout would be like illustrated.
Is it possible to achieve this?

ChrisW67
21st October 2014, 12:20
QMainWindow::setCorner()

Kryzon
24th October 2014, 02:10
Thank you for the keyword, ChrisW67.
With that I could find this article that has an example:
http://www.informit.com/articles/article.aspx?p=1405543&seqNum=5