Re: [Qgis-developer] [plugins] refreshing canvas

2014-11-25 Thread Alexia Mondot
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.mon...@free.fr 
mailto:alexia.mon...@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 Pirellilui...@gmail.com  
mailto:lui...@gmail.com  wrote:

may you also test with the last 2.6version?

regards, Luigi Pirelli

On 24 November 2014 at 01:16, Alexia Mondotale...@mondot.fr  
mailto:ale...@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@lists.osgeo.org  mailto:Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org  mailto:Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org mailto:Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] [plugins] refreshing canvas

2014-11-24 Thread Luigi Pirelli
I understand that you don't have a use case that reproduce the problem!
Can you explain better what the meaning of customized version of
Dockable Mirror Map?

May you file an issue for the plugin with all data displayed in
help-about of qgis?

Just an idea, may you also test if this append with multithread
rendering disabled?

Regards Luigi Pirelli

On 24 November 2014 at 01:16, Alexia Mondot ale...@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@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] [plugins] refreshing canvas

2014-11-24 Thread Luigi Pirelli
may you also test with the last 2.6version?

regards, Luigi Pirelli

On 24 November 2014 at 01:16, Alexia Mondot ale...@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@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] [plugins] refreshing canvas

2014-11-24 Thread Luigi Pirelli
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 lui...@gmail.com wrote:
 may you also test with the last 2.6version?

 regards, Luigi Pirelli

 On 24 November 2014 at 01:16, Alexia Mondot ale...@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@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] [plugins] refreshing canvas

2014-11-24 Thread Alexia Mondot

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 lui...@gmail.com wrote:

may you also test with the last 2.6version?

regards, Luigi Pirelli

On 24 November 2014 at 01:16, Alexia Mondot ale...@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] [plugins] refreshing canvas

2014-11-24 Thread Nathan Woodrow
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.mon...@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 lui...@gmail.com 
 lui...@gmail.com wrote:

  may you also test with the last 2.6version?

 regards, Luigi Pirelli

 On 24 November 2014 at 01:16, Alexia Mondot ale...@mondot.fr 
 ale...@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 
 listQgis-developer@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/qgis-developer

  ___
 Qgis-developer mailing 
 listQgis-developer@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/qgis-developer


  ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] [plugins] refreshing canvas

2014-11-23 Thread Alexia Mondot

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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer