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

Alexandre Neto senhor.neto at gmail.com
Mon Sep 8 06:19:23 PDT 2014


Hello Nyall,

On Mon, Sep 8, 2014 at 1:12 PM, Nyall Dawson <nyall.dawson at gmail.com> wrote:

>
> It's not stored in QgsComposition (unfortunately... this needs to
> change sometime!). Try:
>
> for composer_view in composers:
>    print composer_view.composerWindow().windowTitle()
>
>
> Nyall
>

It worked well (and I would never have guessed it).

Thanks!

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


More information about the Qgis-developer mailing list