PDA

View Full Version : Dock Nesting Problem



blaylockr
13th August 2008, 17:00
The following image shows what my app looks like on startup.
2461

This image shows what I want it to look like at startup.
2462

AllowNestedDocks is enabled in the MainWindow from the Designer. I accomplish the above image by draging one of the docks to the proper position.

I tried the suggestion I found here (http://www.qtcentre.org/forum/f-newbie-4/t-docknestingenabled-4033.html) with no success.

Thanks in advance.:confused:

jpn
13th August 2008, 19:28
Have you tried the version of QMainWindow::addDockWidget() which takes a direction?

blaylockr
13th August 2008, 20:33
I just added "Qt::Horizontal" to both addDockWidget calls but I get the same results.:(

jpn
13th August 2008, 20:38
I would have tried "vertical" myself. :)

blaylockr
14th August 2008, 13:59
That worked!

Thanks:D