Could anyone suggest a way of making QDockWidgets behave something like dock widgets in Eclipse (for example).

By that I mean that:
When they are tabified a user sees just the title in the tab. There is no title bar but the tab itself can be dragged to un-tabify.
When they are not tabified (either docked or floating) they behave like default QDockWidgets with a title bar.

Displaying the title in the tab and the title bar seems ugly and a waste of screen space.

Any ideas?