Re: [Qgis-developer] How to get renderComplete painter reference

2014-04-07 Thread Anita Graser
On Mon, Apr 7, 2014 at 2:36 AM, Mathieu Pellerin nirvn.a...@gmail.com wrote: May I suggest a small improvement? You should calculate the time it took, in ms, to render canvas and deduce that ms value from the animationFrameLength ms value in your singleShot call: Good point. I thought of it,

Re: [Qgis-developer] How to get renderComplete painter reference

2014-04-07 Thread Martin Dobias
Hi Anita On Sun, Apr 6, 2014 at 6:08 PM, Anita Graser anitagra...@gmx.at wrote: I need the painter from the renderComplete signal? Could you help me with the correct syntax? I have: self.iface.mapCanvas().renderComplete.connect(self.waitAfterRenderComplete) and def

Re: [Qgis-developer] How to get renderComplete painter reference

2014-04-07 Thread Nathan Woodrow
Martin, Both those signals are the same and work the same. The newer .connect method is the better way. - Nathan On Mon, Apr 7, 2014 at 7:31 PM, Martin Dobias wonder...@gmail.com wrote: Hi Anita On Sun, Apr 6, 2014 at 6:08 PM, Anita Graser anitagra...@gmx.at wrote: I need the painter

Re: [Qgis-developer] How to get renderComplete painter reference

2014-04-07 Thread Jürgen E . Fischer
Hi Nathan, On Mon, 07. Apr 2014 at 19:37:35 +1000, Nathan Woodrow wrote: Both those signals are the same and work the same. The newer .connect method is the better way. Maybe that was to rule out something else. Apropos does either connect actually return True? Jürgen -- Jürgen E. Fischer

Re: [Qgis-developer] How to get renderComplete painter reference

2014-04-07 Thread Martin Dobias
Hi Jürgen On Mon, Apr 7, 2014 at 11:42 AM, Jürgen E. j...@norbit.de wrote: Hi Nathan, On Mon, 07. Apr 2014 at 19:37:35 +1000, Nathan Woodrow wrote: Both those signals are the same and work the same. The newer .connect method is the better way. Maybe that was to rule out something else.

Re: [Qgis-developer] How to get renderComplete painter reference

2014-04-07 Thread Anita Graser
Am 07.04.2014, 11:57 Uhr, schrieb Martin Dobias wonder...@gmail.com: Yeah, anyway I checked again and even original Anita's statement worked for me. This is what I did in python console: from PyQt4.QtCore import * class A(QObject): def __init__(self): QObject.__init__(self) def f(self,

[Qgis-developer] How to get renderComplete painter reference

2014-04-06 Thread Anita Graser
Hi, I need the painter from the renderComplete signal? Could you help me with the correct syntax? I have: self.iface.mapCanvas().renderComplete.connect(self.waitAfterRenderComplete) and def waitAfterRenderComplete(self, painter): but waitAfterRenderComplete does not receive a

Re: [Qgis-developer] How to get renderComplete painter reference

2014-04-06 Thread G. Garibaldi
On 4/6/2014 11:08 AM, Anita Graser wrote: Hi, I need the painter from the renderComplete signal? Could you help me with the correct syntax? I have: self.iface.mapCanvas().renderComplete.connect(self.waitAfterRenderComplete) and def waitAfterRenderComplete(self, painter): but

Re: [Qgis-developer] How to get renderComplete painter reference

2014-04-06 Thread Mathieu Pellerin
Anita, just saw you commited a fix. Thanks! May I suggest a small improvement? You should calculate the time it took, in ms, to render canvas and deduce that ms value from the animationFrameLength ms value in your singleShot call: QTimer.singleShot(self.animationFrameLength,self.playAnimation)