0

I am using QDockWidget in my application. The widgets by default align like this: enter image description here

However, I want my application to have a preference for the vertical docks like this: enter image description here

Is there a way to achieve this? I am using Qt 5.10.0. Thanks

user1015624
  • 103
  • 1
  • 7

1 Answers1

0

You have to assign corners to respective dock areas in main window, using

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

e.g.

setCorner( Qt::BottomLeftCorner, Qt::LeftDockWidgetArea );
Swift - Friday Pie
  • 12,777
  • 2
  • 19
  • 42