Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

In Qgis python console: I want to populate a list with compositions names, like in Composer Manager, but I can't figure out how to get the names (titles).

So far:

composerlist = self.iface.activeComposers() 

And I get a list of QgsComposerView objects.

Now I want something like that:

for item in composerlist:
    print item.title()  

enter image description here

Thank you.

share|improve this question
1  
I figured out an workaround: item.composerWindow().windowTitle() –  Pablo May 25 '11 at 15:21
1  
Can you add that as a answer then mark it as answer so that we can get it out of the qgis unanswered list. –  Nathan W Apr 7 '12 at 13:52
add comment

1 Answer 1

up vote 1 down vote accepted

I figured out an workaround: item.composerWindow().windowTitle()

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.