[Qgis-developer] Retrieve field name used as label
madmanwoo at gmail.com
Thu Dec 4 15:30:09 PST 2014
Don't use QgsLabel it is the old label engine and will be removed in the
On Fri Dec 05 2014 at 9:27:14 AM Tom Chadwin <tom.chadwin at nnpa.org.uk>
> > QgsLabel(layer.pendingFields()).fields().name()
> That doesn't work - it gives the field at position 0, not the labelling
> > layer.customProperty("labeling/fieldName")
> But this does work perfectly. Thank you so much.
> View this message in context: http://osgeo-org.1560.x6.
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qgis-developer