I don't see any QMainWindow method for accessing its QDockWidgets. Is there a better way to do this than to call children() and loop through the Objectlist and dynamic cast as QDockWidget?