Hello,

You can try this method <https://api.qgis.org/api/classQgsVectorLayerProperties.html#ae4fe88fd37cdac13ee710bfcc7812799>, available in python bindings from 3.30:

props = QgsVectorLayerProperties(iface.mapCanvas(), iface.messageBar(), iface.activeLayer())
props.loadStyle() or props.saveStyleAs()

Regards,
Jacky Volpes



Le 11/05/2023 à 07:21, Giulio Fattori via QGIS-Developer a écrit :
Good morning
how can I recall and use the Load Style and Save Style forms from python code ?

Many thanks for any support

Giulio

_______________________________________________
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

--
Jacky Volpes

Ingénieur SIG - Oslandia
_______________________________________________
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

Reply via email to