[Qgis-developer] custom legend with python API

Bastien Breteau bastien.breteau at airinov.fr
Fri Oct 16 08:36:17 PDT 2015


Hi,


I am using the python API to generate pdf reports. I need to change some
labels in a raster legend.

I attempted to use the QgsLegendModelV2, and QgsSymbolV2LegendNode classes
(setData or setUserLabel), but the "default implementation does nothing and
returns false" according to the documentation.

What is the more appropriate way to access and update the legend nodes?


Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20151016/5cc7dccd/attachment-0001.html>


More information about the Qgis-developer mailing list