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

Sandro Santilli strk at kbt.io
Wed Jun 29 07:37:57 PDT 2016


I'm writing a testcase for bug 13952 [1] and would need a
way to set the map canvas size so to be able to syntetize
clicks on pixels with predictable contents. How can it be
done ?

Beside, I've found an QgsMapCanvas::updateMapSize() method
which is declared in the header but never defined (git blame
says it's yours, Nathan).

I'm thinking there could be enough similar testcases to
justify a service class to simplify writing them. What
do you think ?

[1] http://hub.qgis.org/issues/13952

--strk; 

  ()   Free GIS & Flash consultant/developer
  /\   https://strk.kbt.io/services.html


More information about the Qgis-developer mailing list