Search code examples
c++qtqdockwidget

Qt DockWidgets distribution


I'm working in a QT Application with dock widgets. But I can't do the desired distribution, my current distribution is this:

enter image description here

But i want this other distribution:

enter image description here

Any ideas?


Solution

  • You can set the corner on QMainWindow.

    setCorner(Qt::Corner::BottomRightCorner, Qt::DockWidgetArea::RightDockWidgetArea);
    

    http://doc.qt.io/qt-4.8/qmainwindow.html#setCorner