[Qgis-developer] Retrieve field name used as label

Tom Chadwin tom.chadwin at nnpa.org.uk
Thu Dec 4 15:27:09 PST 2014

> QgsLabel(layer.pendingFields()).fields()[0].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.nabble.com/Retrieve-field-name-used-as-label-tp5176293p5176555.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

More information about the Qgis-developer mailing list