I'm facing a small but very annoying trouble : I add dock widgets to a QMainWindow and I want them to be as small as possible (i.e. to leave more space to the central widget...) I set the size policy of the dock and of its widget to QSizePolicy::Maximum while setting the policy of the central widget to QSizePolicy::Expanding but there's still a waste of space (my goal is to make the dock as small as possible by default). Besides, if I use QSizePolicy::MinimumExpanding instead on the central widget, the layout goes mad and the main window gets bigger than the available screen space...

Any hints?