[Qgis-developer] How to get Composer's name/title using Python
Nyall Dawson
nyall.dawson at gmail.com
Mon Sep 8 05:31:09 PDT 2014
On 8 September 2014 22:27, Salvatore Larosa <lrssvtml at gmail.com> wrote:
> 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?
>
Yes, but I don't want to add another method to the API until I can do
it properly.... which means moving this property to composition. I'll
tackle it sometime as I agree it's a painful process at the moment.
Nyall
More information about the Qgis-developer
mailing list