Looks like a bug to me too. But what do we know? Here is the info in the docs for the latest Qt version.
One thing I did notice is (using your scenario):
- Call QMainWindow::saveState on a main window with two docked QDockWidgets which are nested/tabbed
- Float one of the nested/tabbed QDockWidgets, i.e. one will be docked and the other floating
- Call QMainWindow::restoreState - doesn't work.
If you then click the float button (or double click on the top bar) the floating widget will return to tabbed mode. So the app is retaining the information about the previous location of the floated tab. Apparently "saveState()" doesn't return that information to "QSettings.setValue".
I've never filed a bug report either. I'd appreciate it if you'd post back about what happens.
Bookmarks