I'm manually laying out a Qt application in C++ using QMainWindow. I want two side-by-side docked widgets at the bottom of the screen, but I want them to have disproportionate widths. Currently, I can only get them to have the same width. Is there any way to set a stretch factor or other mechanism to get nonuniform dock splits?
Here's how I'm laying them out currently:
OutputPanel* outputPanel = new OutputPanel;
mainWindow.addDockWidget(Qt::BottomDockWidgetArea, outputPanel);
ThumbnailViewer* thumbnailViewer = new ThumbnailViewer;
mainWindow.splitDockWidget(outputPanel, thumbnailViewer, Qt::Horizontal);
Here's an image of what I'd like to achieve:
Thanks!