[Qgis-developer] Retrieving a print composer knowing its name, in Python

DelazJ delazj at gmail.com
Sun Jul 5 04:23:35 PDT 2015


Hi,
I have many print composers in a project and would like to select one of
them, knowing its name. The only way I found yet is to iterate over all
composer views :
for cView in iface.activeComposers():
  if cView.composerWindow().windowTitle() == 'myTitle':
     # do what I want

Is this the only way to do it? Isn't there a more direct way to access
print composer?

Thanks,
DelazJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150705/5076f033/attachment.html>


More information about the Qgis-developer mailing list