[Qgis-developer] setting QgsMapCanvas size, for testing map tools

Tom Chadwin tom.chadwin at nnpa.org.uk
Fri Jul 1 08:25:07 PDT 2016


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.


More information about the Qgis-developer mailing list