I want to save my custom DockWidgets (inherited from QDockWidget) using the saveState () / restoreState () function that MainWindow provides.
I have two questions: 1. How can I save and restore my Dockwidgets?
- I already tried to register my custom DockWidgets as QMetaType and implement standard constructors, copy constructors, destructors and stream operators.
2. How can I detect loaded DockWidgets?
- For example: if there are 2 DockWidgets where it is stored, and I load them using restoreState (), is there a way to get pointers to these loaded widgets?
Thanks Tobias
source
share