I'm using Qt4 and I have a menu option that programmatically adds a new dock widget into a dock area.
Unfortunately, if the dock area is already full, adding a new dock widget will cause it to resize the dock widgets below their minimum size, leading to overlapping widgets and worse.
How can I verify there is enough space in a dock area to add a new dock widget?