Reputation: 200
I have a program, preliminary look of which is in the first photo. Here, the project tree takes all space below it, and the 3D-viewport and the text edit widget are stacked vertically:
However, when I try to turn that text edit into a dock widget, it places itself under the project tree as well:
I would like the layout to be as in the first photo, and the text edit to be a dock widget at the same time, but I couldn't figure, how to do this, at least in the Qt Designer. Is it possible?
Thanks)
Upvotes: 0
Views: 57
Reputation: 12879
I think QMainWindow::setCorner
is what you're looking for...
QMainWindow main_window(...);
main_window.setCorner(Qt::BottomLeftCorner, Qt::LeftDockWidgetArea);
The above code should cause the bottom left corner of the QMainWindow
to be occupied by the left dock area rather than the bottom dock area.
Upvotes: 1