[QGIS-Developer] How to set QgsSettings to show up in "new settings tree widget"
Etienne Trimaille
etienne.trimaille at gmail.com
Fri Apr 4 05:56:03 PDT 2025
Hi,
Did you find something related to plugin settings ?
I'm fine to update the docs if there are some hints.
https://docs.qgis.org/3.40/en/docs/pyqgis_developer_cookbook/settings.html
Or maybe better in the PyQGIS doc straight ?
Le sam. 28 déc. 2024 à 10:06, Richard Duivenvoorde via QGIS-Developer <
qgis-developer at lists.osgeo.org> a écrit :
> Hi Dev's,
>
> What is the proper way to write plugins/QgsSettings in a plugin, AND let
> them (also) show up in the "new settings tree widget" ?
>
> I've tried (using the a predefined Plugins setting like in the api docs:
>
> https://qgis.org/pyqgis/master/core/QgsSettings.html#qgis.core.QgsSettings.Plugins
> :
>
> s=QgsSettings()
> s.beginGroup("settingstest",QgsSettings.Plugins)
> s.setValue("foo", 1)
> s.endGroup()
> s.sync()
>
> Then that value shows up in the old settings widget (in
> 'plugins/settingstest', but not yet in the new tree.
> While that shows other settings.
> Apparently I'm missing something?
> Or isn't the python part not yet done?
>
> Thanks for any pointers.
>
> Regards,
>
> Richard Duivenvoorde
>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20250404/bd9c909c/attachment.htm>
More information about the QGIS-Developer
mailing list