[QGIS-Developer] Custom python expression question

Nathan Woodrow madmanwoo at gmail.com
Fri May 5 03:42:17 PDT 2017

Hey Andreas,

Parent means the parent expression itself.  So in a function, you can know
what the whole expression is e.g it points to the instance of.

You can't really know what the layer because expressions are not always
layer bound and QgsFeatures don't hold a reference to the layer they are
from.  Best you can do at the moment I think is to pass the layer name or
id into the custom expressions.

- Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170505/cb589958/attachment.html>

More information about the QGIS-Developer mailing list