<div dir="ltr"><div dir="ltr">Hi Ricardo,<div><br></div><div>To get some background you can read this QEP and resulting pull requests:</div><div><a href="https://github.com/qgis/QGIS-Enhancement-Proposals/issues/124" target="_blank">https://github.com/qgis/QGIS-Enhancement-Proposals/issues/124</a><br></div><div><a href="https://github.com/qgis/QGIS/pull/42597">https://github.com/qgis/QGIS/pull/42597</a><br></div><div><a href="https://github.com/qgis/QGIS/pull/42860">https://github.com/qgis/QGIS/pull/42860</a><br></div><div><a href="https://github.com/qgis/QGIS/pull/42954">https://github.com/qgis/QGIS/pull/42954</a><br></div><div><br></div><div>Resumed shortly, there is a new preferred way of defining and using settings with the QgsSettingsEntry classes.</div><div>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.</div><div><br></div><div>If your plugin must be compatible with 3.16/3.18 you will have to stay with QgsSettings.</div><div><br></div><div>Regards</div><div>Damiano</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 1, 2021 at 4:43 PM Ricardo Filipe Soares Garcia da <<a href="mailto:ricardo.garcia.silva@gmail.com" target="_blank">ricardo.garcia.silva@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi all</div><div><br></div><div>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. <br></div><div>I then searched the commit history on github and found some commits dating from April, which I guess are relevant here:</div><div><br></div><div><a href="https://github.com/qgis/QGIS/commits?after=415d4831b05cb3821ccbefe0b67307035bc0fb75+34&author=domi4484" target="_blank">https://github.com/qgis/QGIS/commits?after=415d4831b05cb3821ccbefe0b67307035bc0fb75+34&author=domi4484</a></div><div><br></div><div>Is there some place where I can read about these changes in order to gain some more context on them?</div><div><br></div><div>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?<br></div><div><br></div><div>Thanks in advance<br></div><div><br>-- <br><div dir="ltr">___________________________ ___ __<br>Ricardo Garcia Silva</div></div></div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>
</div>