Qt 6.11 is out! See what's new in the release
blog
How to manually set size of docking area?
-
I'm writing an editor in Qt and have created an MDI style interface that allows the user to open multiple views, resize them and dock them to the sides or bottom of the main window as they see fit. I'd like to have the program automatically save and restore the user's layout whenever the program closes.
I can step through all my windows and save their size, position, visibility and so on, but I can figure out how to restore with width of a docking region. Even if I call
QDockWidget::resize(), the docking area still shrinks to the default starting size. This happens whether I call resize before or after I add it to the dock.How do I programmatically adjust this region?