This is quite similar to what I would like to be able to do. I would ideally like a QMainWindow with a number of child dialog windows which would behave like worksheets by allowing QDockWidgets to dock to them. This way a user could create an arbitrary number of worksheets, each seperate to (but children of) the QMainWindow and then dock various QDockWidgets to those worksheets.

Also, is there a way to get undocked QDockWidgets to dock to one another or over one another as they do when they are docked? This would be very useful.