Try looking at the style sheets ... There are examples of how to customize the QDockWidget title bar in QtAssistant ... (Look for the "Style Sheet", then select "Customize QDockWidget" in the tree) ...
If you haven't found anything, perhaps overriding QMainwindow?
Hope this helps a bit ...
source share