Hi!
I have an application with 3 dock widgets in it's QMainWindow. Dock widgets are only closable and each of them has only one allowed area. They are connected with checkable actions in menu like this:
Qt Code:
  1. connect(ui.actionProject_Explorer, SIGNAL(toggled(bool)), projectExplorerWidget, SLOT(setVisible(bool)));
  2. connect(projectExplorerWidget, SIGNAL(visibilityChanged(bool)), ui.actionProject_Explorer, SLOT(setChecked(bool)));
To copy to clipboard, switch view to plain text mode 
So dock widget can be closed with X button or with unchecking action. There are two problems:
1. When I change size of a dock widget (with a mouse, during runtime), then close it and show it again, it has an initial size, no the size I set with mouse. How can I force them to remember that?

2. When I have some of those dock widgets visible and then minimize my app and restore, all dock widgets are always closed, even if they were visible before minimizing :/ How can I keep the state which was before minimizing?

I have tested my app on Vista and Kubuntu 8.04 and it works same on both platforms.