[Qgis-developer] Retrieve field name used as label
Salvatore Larosa
lrssvtml at gmail.com
Thu Dec 4 15:14:20 PST 2014
Both should work:
QgsLabel(layer.pendingFields()).fields()[0].name()
layer.customProperty("labeling/fieldName")
Best Regards,
-SL
--
Sent from my mobile phone
Il 04/Dic/2014 23:00 "Tom Chadwin" <tom.chadwin at nnpa.org.uk> ha scritto:
> Can anyone help with this?
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Retrieve-field-name-used-as-label-tp5176293p5176544.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20141205/f77dd5fb/attachment.html>
More information about the Qgis-developer
mailing list