Re: [Qgis-developer] Composer map size and extent

2013-05-10 Thread Marco Hugentobler
Hi Alexander Afaik if you set the new extent such that the width/height ration of the extent is the same as the item's one, it won't change size. Another possibility is to set the new extent and call setSceneRect() just after that. For the scale: QgsComposerMap::setNewScale should not change

[Qgis-developer] Composer map size and extent

2013-05-08 Thread Alexander Bruy
Hi all, is it possible to change composer map extent (and scale) programmatically without changing its width and height? When using setNewExtent() method width and height of the composer map frame changed and overlaps with other composer elements, so resulting image looks differently from