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

Sandro Santilli strk at kbt.io
Thu Jun 30 12:49:26 PDT 2016


On Thu, Jun 30, 2016 at 03:24:12AM -0700, Tom Chadwin wrote:
> I asked about this a while back, as I could not get a defined canvas size in
> my tests. I never found an answer, but never understood why it didn't work:
> 
> https://lists.osgeo.org/pipermail/qgis-developer/2015-November/040392.html

Yeah, I feel your pain. It's a frustrating situation indeed.
We'd need an helper class for testcases, to make things like
setting the canvas size easy, and to simulate user events
like mouse moves and clicks, tools selection and the like.


--strk;


More information about the Qgis-developer mailing list