Hi Ricardo, To get some background you can read this QEP and resulting pull requests: https://github.com/qgis/QGIS-Enhancement-Proposals/issues/124 https://github.com/qgis/QGIS/pull/42597 https://github.com/qgis/QGIS/pull/42860 https://github.com/qgis/QGIS/pull/42954
Resumed shortly, there is a new preferred way of defining and using settings with the QgsSettingsEntry classes. QgsSettingsEntry internally uses QgsSettings and only a part of the QGIS codebase was ported to the new way. This means QgsSettings will stay available for now. If your plugin must be compatible with 3.16/3.18 you will have to stay with QgsSettings. Regards Damiano On Tue, Jun 1, 2021 at 4:43 PM Ricardo Filipe Soares Garcia da < [email protected]> wrote: > Hi all > > I see that settings management in QGIS seems to be changing for the > upcoming 3.20 release. I got this clue when consulting the online API docs > for master and then realizing there is no QgsSettings class in there > anymore. > I then searched the commit history on github and found some commits dating > from April, which I guess are relevant here: > > > https://github.com/qgis/QGIS/commits?after=415d4831b05cb3821ccbefe0b67307035bc0fb75+34&author=domi4484 > > Is there some place where I can read about these changes in order to gain > some more context on them? > > I'm interested in knowing how I can support both QGIS LTR and the upcoming > 3.20 on plugins. Is QgsSettings gone forever from 3.20 on or is this going > to be backwards compatible for a while? If not, what is going to be the new > approach for settings management? > > Thanks in advance > > -- > ___________________________ ___ __ > Ricardo Garcia Silva > _______________________________________________ > QGIS-Developer mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
