QDockWidgets have a lot of cool things that they do! However, I need them to do more. I've searched but haven't found anything about hiding and showing or adding things to my titlebar.

Okay so first the hide/show.....
Right now I save the state of my mainwindow and then restore it. But this isn't the ideal way of doing things. Because I want to hide and show different dock widgets. I've tried to remove the widget and then add it later but that seems to mess QT up.
Any ideas on how to do this right? I will even take a pointer to documentation on this!

Second;
Can you add icons to the title bar? they have the redoc icon and the close icon but I would like to add an icon that max's the window out!

Thanks QT gurus!