I have an stupid question, I am trying to create a layout similar to the QCreator but I don't arrive to do it correctly. I think that for the Project and OpenDocument they use Docking but what I don't understand is how they do to create the Bar at the left size of the OpenDocument and Open Documents?
If someone know how to create a similar layout programatically that will be great.
All the best
You can grab the Qt Creator sources and get some inspiration from there
This is not the actual layout from Creator but it will give you similar results. You can then go on splitting stuff up. The important thing is that if you also use dock widgets you should disallow them to dock on the left.
auto everything = new QWidget();
auto leftBar = new QWidget();
auto leftWindowStack = new QSplitter(Qt::Vertical);
auto rightWindowStack = new QWidget();
auto everythingLayout = new QHBoxLayout();
auto rightSideLayout = new QVBoxLayout();
auto mainSplitter = new QSplitter(Qt::Horizontal);
auto statusBar = new QStatusBar();
for(int i = 0 ; i < 3; ++i)
auto window = new QWidget();
//the ugly colors are just to see where stuff is
This is what it looks like. The red and cyan bars are movable splitter handles.