[Qgis-developer] How to get Composer's name/title using Python

Alexandre Neto senhor.neto at gmail.com
Mon Sep 8 04:52:19 PDT 2014


Hello all,

For an expression function I'm trying to select a composition by searching
for the composer name/title.

I know I can get all active composers by using:

composers = iface.activeComposers()


I can then access to the QgsComposerView by iterating the composers list:

for composer_view in composers:
>     print composer_view


and that in the composerview there is a QgsComposition:

composition = composer_view.composition()


But where can I check for the composition title or name? Can't seem to find
it anywhere...

Thanks,

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


More information about the Qgis-developer mailing list