Re: [QGIS-Developer] QGIS API - recent changes to QgsSettings
Thanks for the feedback. I've glanced through the QEP and it seems nice. I'll check it out with some more depth in the coming days. As for the missing QgsSettings, I must admit I prefer to look at the C++ API docs instead of the Python ones - a bad habit I got from the olden days ;) But now I see that it is there and I was the one looking at the wrong place. Cheers Denis Rouzaud escreveu no dia quarta, 2/06/2021 à(s) 09:09: > > > Le mar. 1 juin 2021 à 16:43, Ricardo Filipe Soares Garcia da < > ricardo.garcia.si...@gmail.com> a écrit : > >> 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. >> > > To complete what Damiano wrote, QgsSettings didn't disappear: > https://qgis.org/pyqgis/master/core/QgsSettings.html > > > >> 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=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 >> QGIS-Developer@lists.osgeo.org >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> > -- ___ ___ __ Ricardo Garcia Silva ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] QGIS API - recent changes to QgsSettings
Le mar. 1 juin 2021 à 16:43, Ricardo Filipe Soares Garcia da < ricardo.garcia.si...@gmail.com> a écrit : > 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. > To complete what Damiano wrote, QgsSettings didn't disappear: https://qgis.org/pyqgis/master/core/QgsSettings.html > 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=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 > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] QGIS API - recent changes to QgsSettings
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 < ricardo.garcia.si...@gmail.com> 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=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 > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] QGIS API - recent changes to QgsSettings
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=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 QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer