RDP doesn't remember plot settings between QGIS sessions
It would be great if the plugin could remember the plotting settings between QGIS sessions (layers used/symbols/etc). When saving a QGIS project and reopening it, the RDP window will start at default settings (no layers added).
RDP Version: 1.6.1 QGIS Version: 3.8.2
Comments (6)
-
repo owner -
repo owner @Benjamin Jakimow have you any experience in saving and restoring widget state information between QGIS sessions? Any hints where to start reading on that topic is highly appreciated.
-
repo owner - changed status to on hold
-
All you need are QSettings https://doc.qt.io/qt-5/qsettings.html
-
repo owner - But this is not even a QGIS class, how will the settings end up in the users project QGZ file?
- I think I would need to connect to a signal that indicates that the user has saved (or is about to save) the current project, right?
- And after the user loads that QGZ project file again, I would need to get notified to re-initialize my GUI.
Can all this be done via the QSettings class?
-
You asked for QGIS sessions. If you want to save data in a QGIS project, you might use the QgsProject.instance() singleton and its read/write functions. https://qgis.org/api/classQgsProject.html
- Log in to comment
Good point! I will think about it for the next release.