How to Save custom DockWidgets
Posted
by Tobias
on Stack Overflow
See other posts from Stack Overflow
or by Tobias
Published on 2010-03-02T09:10:11Z
Indexed on
2010/03/13
6:05 UTC
Read the original article
Hit count: 464
Hello,
I want to save my custom DockWidgets (inherited from QDockWidget) with the saveState() / restoreState() function my MainWindow provides.
I have two questions:
1. How can I save and restore my Dockwidgets?
- I already tried registering my custom DockWidgets as a QMetaType and implementing the default Constructor, copy Constructor, Destructor and Streaming operators.
2. How can I identify the loaded DockWidgets?
- For example: If 2 DockWidgets where saved and I load them with restoreState(), is there a way to get pointers to these loaded Widgets?
Thanks, Tobias
© Stack Overflow or respective owner