[Qgis-user] custom legend with API

Bastien Breteau bastien.breteau at gmail.com
Fri Oct 16 06:58:10 PDT 2015


Hi,


I am using the qGis 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


Bastien Breteau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20151016/9b40da7c/attachment.html>


More information about the Qgis-user mailing list