PDA

View Full Version : How To Center Dock Widget?



steadi
5th November 2012, 19:36
Hello again,

I currently have 2 dock widgets in my ui. The first is docked to the left and the second to the right. I seem to have a problem adding a third dock at the bottom of the ui in between docks 1 and 2.

The attached image has a rough layout of what the design currently is and what i am trying to accomplish. The blue area is where i would like my third dock to be - How do i go about doing this?
8393

Thanks,
Matt

ChrisW67
5th November 2012, 22:05
Set the left and right dock widgets to occupy the bottom-left and bottom-right corners areas respectively: QMainWindow::setCorner(). Then place the new dock widget in the bottom dock area beneath the central widget.