[Qgis-developer] How to get renderComplete painter reference

Nathan Woodrow madmanwoo at gmail.com
Mon Apr 7 02:37:35 PDT 2014


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.sk at gmail.com> wrote:

> 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
> _______________________________________________
> Qgis-developer mailing list
> 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/20140407/0b2aa86f/attachment.html>


More information about the Qgis-developer mailing list