[Qgis-developer] [plugins] refreshing canvas

Alexia Mondot alexia.mondot at free.fr
Tue Nov 25 15:46:55 PST 2014


I've tried to add the canvas.repaint() with my canvas.refresh(), and it 
seems to work !

Thanks !
Alexia

On 25/11/2014 00:37, Nathan Woodrow wrote:
> Hey,
>
> I suspect you are running into this 
> http://gis.stackexchange.com/questions/87841/why-qgsmapcanvas-only-appear-after-lost-focus 
>
>
> Here is a "fix" http://gis.stackexchange.com/a/92734/97
>
> - Nathan
>
> On Tue Nov 25 2014 at 9:34:14 AM Alexia Mondot <alexia.mondot at free.fr 
> <mailto:alexia.mondot at free.fr>> wrote:
>
>     Thanks for your answer.
>
>     Actually, I wonder if my refresh problem is not only on QGIS 2.2.
>     I believe I had not reproduce this behaviour on QGIS 2.4 and 2.6.
>     And I didn't know about the bug.
>     I have these two points to analyse.
>
>     The multithread rendering was available in QGIS 2.2 ??
>
>     I'm going to work on the two previous points.
>
>     Thanks again,
>     Alexia
>
>
>
>     On 24/11/2014 23:52, Luigi Pirelli wrote:
>>     could be related with this?
>>
>>     https://hub.qgis.org/issues/9799
>>
>>     check OTF reprojection combination
>>
>>     regards, Luigi Pirelli
>>
>>     On 24 November 2014 at 23:49, Luigi Pirelli<luipir at gmail.com>  <mailto:luipir at gmail.com>  wrote:
>>>     may you also test with the last 2.6version?
>>>
>>>     regards, Luigi Pirelli
>>>
>>>     On 24 November 2014 at 01:16, Alexia Mondot<alexia at mondot.fr>  <mailto:alexia at mondot.fr>  wrote:
>>>>     Hi all,
>>>>
>>>>     I have a plugin using a customized version of Dockable Mirror Map.
>>>>     I use it to display each processing result in a new view.
>>>>
>>>>     I get a strange behaviour with my plugin :
>>>>     Some times, the canvas stays white. A scroll in it is fine to reload it and
>>>>     my image is displayed.
>>>>     I get this problem since the beginning of the development on QIGS 2.2. It is
>>>>     for me a "random" problem, because I can't say why I get these white canvas.
>>>>     But, when I get it I save the projet with the white view, and when reloaded,
>>>>     the canvas is still white.
>>>>
>>>>     I've played with canvas.refresh(), canvas renderer flags and even with
>>>>     canvas.freeze().
>>>>     I can't understand the behaviour I get, maybe I have a wrong usage of the
>>>>     properties above.
>>>>     I also thought about triggerRepaint()...
>>>>
>>>>     Thanks by advance,
>>>>     Alexia
>>>>
>>>>
>>>>     _______________________________________________
>>>>     Qgis-developer mailing list
>>>>     Qgis-developer at lists.osgeo.org  <mailto:Qgis-developer at lists.osgeo.org>
>>>>     http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>     _______________________________________________
>>     Qgis-developer mailing list
>>     Qgis-developer at lists.osgeo.org  <mailto:Qgis-developer at lists.osgeo.org>
>>     http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>     _______________________________________________
>     Qgis-developer mailing list
>     Qgis-developer at lists.osgeo.org <mailto:Qgis-developer at lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/qgis-developer
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20141126/55be4d15/attachment.html>


More information about the Qgis-developer mailing list