Afraid not.Disallowing tabbed docks is also a nice touch, is there a way to do this on a DockWidget by DockWidget basis? There are some widgets that we will want to have tabbed, while others will want to be always visible.
It is a QMainWindow option.
You can always create a custom dock widget that allows tabbing.
Well, you can do that( allow the user to choose the layout ).I've done applications like this in the past where only the programmers could re-layout the screen, but that puts programmers "in the loop" - would be best if the users could tweak their own layouts.
But you can't put too many restrictions on the dock widgets, or restrictions that contradict with each other( like the sizes ).
Another thing you could do is create like 10-20 layout configurations(which could be more than enough) and let the user choose from them.
In the same time, you could allow dock resizing, but not moving.
Otherwise, if you allow the user full control over the layout and you impose sizes on the widgets, you could get in trouble.
Here's an idea: keep your min/max sizes as they are, but when the user starts moving a dock widget, intercept this move event, and remove the size constraints on your widgets.
When the user finished moving, you can set them back, although that could result in a relayout of the docks made by the main window layout.
Regards
Regards
Bookmarks