<div dir="ltr">Just to let you know I use QgsSettings in most of my plugins. If you change it, that would cause all kinds of problems with compatibility to the 10 plugins that I support. Be very careful in changing class names. It can be done, but it could have major impacts.<div><br></div><div>Best wishes,</div><div><br></div><div>Calvin</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 9, 2022 at 8:48 AM Denis Rouzaud via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</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">Hi all,<div><br></div><div>While working on the refactoring of settings (see <a href="https://github.com/qgis/QGIS-Enhancement-Proposals/issues/245" target="_blank">https://github.com/qgis/QGIS-Enhancement-Proposals/issues/245</a>), I am thinking about deprecating the QgsSettings class and directly integrate its functionality within QgsSettingsRegistry.</div><div><br></div><div>I would need a bit of help to understand the rationale behind QgsSettings.</div><div><br></div><div>The use of global settings is pretty clear to me and migrating this is ok.<br></div><div><br></div><div>I am wondering about the different constructors (<a href="https://api.qgis.org/api/3.28/classQgsSettings.html" target="_blank">https://api.qgis.org/api/3.28/classQgsSettings.html</a>) which correspond to the different constructors of QSettings.</div><div>While it makes sense to have these constructors, I don't see them used anywhere in the code. So, it means that they are never used within QGIS application.</div><div>I am wondering why QgsSettings isn't used with a static instance.</div><div><br></div><div>So, are these constructors really used and meaningful? </div><div>Would it make sense to have 2 static instances of QSettings (1 user, 1 global)?</div><div><br></div><div>Many thanks for any input.</div><div>Best wishes,</div><div><br></div><div>Denis</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>