[Qgis-developer] How to get renderComplete painter reference

Martin Dobias wonder.sk at gmail.com
Mon Apr 7 02:31:23 PDT 2014


Hi Anita

On Sun, Apr 6, 2014 at 6:08 PM, Anita Graser <anitagraser at 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 waitAfterRenderComplete(self, painter):

Try

QObject.connect(self.iface.mapCanvas(),SIGNAL("renderComplete(QPainter*)"),
self.waitAfterRenderComplete)

Cheers
Martin


More information about the Qgis-developer mailing list