Hi Martin
Martin Dobias wrote >>>> iface.mapCanvas().geometry() > PyQt4.QtCore.QRect(0, 0, 879, 390) >>>> iface.mapCanvas().viewport().geometry() > PyQt4.QtCore.QRect(3, 3, 873, 384) Ah, OK! I didn't know anything about a canvas frame. So, without doing setFrameStyle(), does canvas.extent() give canvas.geometry() or canvas.viewport().geometry()? Thanks Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/setting-QgsMapCanvas-size-for-testing-map-tools-tp5273987p5274394.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. _______________________________________________ Qgis-developer mailing list [email protected] List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
