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

Salvatore Larosa lrssvtml at gmail.com
Mon Sep 8 05:27:20 PDT 2014


Hi Nyall,

On Mon, Sep 8, 2014 at 2: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()

shouldn't be useful having here a convenience method to get the composer title?

Regards,
SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode


More information about the Qgis-developer mailing list