[Qgis-developer] Zoom to full extent in composer (Python)

Vincent Damoy vincent.damoy at espaces-naturels.fr
Tue Mar 25 01:55:28 PDT 2014


Hello,

I open a new composer in QGIS with Python, and I'd like to zoom to the 
QgsComposition extent (like the "zoom to full extent" button in the 
composer).

I just can't find the way to do so.

I sought in PYQGIS cookbook, in Qgis API documentation, I tried to find 
the classes and methods used for this button in QGIS sources... (I 
basically want to include this already made code into mine, in Python)

Have you any idea?
Thanks in advance for any reply.
All the best.
Vincent Damoy


More information about the Qgis-developer mailing list