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" <[email protected]> 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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to