<div dir="ltr">I have written this blog post about using user defined functions. But it might be a very specific case, and It's a kind of workaround.<div><br></div><div><a href="https://sigsemgrilhetas.wordpress.com/2014/09/09/coordenadas-dos-cantos-do-mapa-em-qgis-map-corner-coordinates-in-qgis/">https://sigsemgrilhetas.wordpress.com/2014/09/09/coordenadas-dos-cantos-do-mapa-em-qgis-map-corner-coordinates-in-qgis/</a> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 9, 2015 at 3:30 PM, Barry Rowlingson <span dir="ltr"><<a href="mailto:b.rowlingson@lancaster.ac.uk" target="_blank">b.rowlingson@lancaster.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Mar 9, 2015 at 2:19 PM, Larissa Junek <<a href="mailto:junek@gbd-consult.de">junek@gbd-consult.de</a>> wrote:<br>
> Hello all,<br>
> I'm writing a new chapter about the new function editor for the user<br>
> manual 2.8. I'm not confirmed with PYthon programmming.<br>
> See<br>
> <a href="http://docs.qgis.org/testing/en/docs/user_manual/working_with_vector/field_calculator.html#function-editor-tab" target="_blank">http://docs.qgis.org/testing/en/docs/user_manual/working_with_vector/field_calculator.html#function-editor-tab</a><br>
><br>
> Is there somebody who can give a short example of code for beginners?<br>
> I look for a code that shows the new possibilities of the function<br>
> editor in comparison to the Python console. On Nathan Woodrows blog<br>
> it is mentioned that it's a possibility to use full Python Code.<br>
><br>
> It would be great if the description includes an explanation of the<br>
> elements of the code.<br>
<br>
</span>Someone recently asked on <a href="http://gis.stackexchange.com" target="_blank">gis.stackexchange.com</a> how to put the Project<br>
Title into a field in a Map Composer text label. So I wrote an answer:<br>
<br>
<a href="http://gis.stackexchange.com/questions/137933/how-to-insert-qgis-project-properties-project-title-as-field-or-token-using-an" target="_blank">http://gis.stackexchange.com/questions/137933/how-to-insert-qgis-project-properties-project-title-as-field-or-token-using-an</a><br>
<br>
 That's a fairly minimal example, it just uses one QGIS Python API<br>
call to get the project title. I don't think you can get it into a<br>
label in any other way.<br>
<br>
 I'm sure someone can improve it to get rid of the dummy argument. I<br>
should read the documentation...<br>
<span class="HOEnZb"><font color="#888888"><br>
Barry<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
> Thanks!<br>
><br>
> Kind regards,<br>
> Larissa<br>
> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br></div>