[Qgis-developer] Simple sample code for function editor

Andrew McClure andrew at southweb.co.nz
Mon Mar 9 13:55:08 PDT 2015


You may want to include reference to the unregister method when cleaning up.

// For all your user defined functions
 if QgsExpression.isFunctionName("$<name>"):
          QgsExpression.unregisterFunction("$<name>")



More information about the Qgis-developer mailing list