<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<div>&gt; but the connect function doesn't seem to<br>&gt; emit the point or call the slot.  Here is some sample code:<br>&gt; <br>&gt; emitPoint = qgis.gui.QgsMapToolEmitPoint(w.canvas)<br>&gt; w.canvas.setMapTool(emitPoint)<br>&gt; w.connect(emitPoint, PyQt4.QtCore.SIGNAL("canvasClicked(QgsPoint)"),<br>&gt; printHello)<br>&gt; <br>&gt; Bob<br><br></div><div>Hi Bob,</div><div>Here is an working connection that I use in one of my plugins:</div><div><br></div><div><br></div><div><div>self.point=gui.QgsMapToolEmitPoint(self.canvas)</div><div>QObject.connect(self.point, SIGNAL("canvasClicked(const QgsPoint &amp;,Qt::MouseButton)"), self.export)</div></div><div><br></div><div><br></div><div>Pay attention to&nbsp;"canvasClicked(const QgsPoint &amp;,Qt::MouseButton)" it has to be exactly like that otherwise you will get no signal.</div><div><br></div><div>Regards,</div><div><br></div><div>Pablo.</div>                                               </div></body>
</html>