[Qgis-developer] Getting the current QgsComposerView in an expression builder user function

Alexandre Neto senhor.neto at gmail.com
Fri Aug 29 04:05:24 PDT 2014


Hello,

I'm working in a user function for expression builder to retrieve a x and y
values of a map extents in a print composer. The idea is to be able to use
it in label to label the map corners.

I know I can get all active (opened) composers by doing:

composers = iface.activeComposers()

It gives me a list of QgsComposerView, that I can select by the list index.
But how can I know the position of the QgsComposerView  in which I'm using
the function (by using it in a label)?

Many thanks,

Alexandre Neto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140829/8c96bf4f/attachment.html>


More information about the Qgis-developer mailing list