Hi everyone!

I've started developing an application using PyQt (though C++ answers are welcomed!) and I want it to be made entirely of docks so the user can move, undock and generally re-position everything to whatever they want.

I began by not setting a central widget for the MainWindow. This provides the exact functionality I want like so:

working.PNG

However, if you remove all the docks from a particular side, say for example we remove the right side docks, the left side dock/s expand to cover the entire MainWindow meaning it's impossible to redock anything back onto the right dock area:

expanded.jpg


I've also attempted to set a blank widget with size (0,0) as the central widget, however the user can then separate the docks with the individual splitter handles it creates, leaving unusable space between them like so:

separated.PNG

Any help is greatly appreciated!

Cheers,
Kaine