tags:

views:

300

answers:

1

I'm using QT4 and I have a menu option that programatically 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?

A: 

Instead of determining available space, could you instead use the tabifyDockWidget feature of QT docking? (Available as of QT 4.2 ... I think).

kaliatech
No, this would cause the new widget to just be a tab on top of the existing widget, which is completely different behavior.
Drakonite