[Qgis-user] API : how to rename legend items?
Hi, I need to rename legend items using the qGIS API for python. The legend items are related to a raster layer displayed in pseudocolor. Is there any way to set a label for each value of the legend using the API? Best Regards. Bastien Breteau. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] custom legend with API
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 ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user