<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>> but the connect function doesn't seem to<br>> emit the point or call the slot. Here is some sample code:<br>> <br>> emitPoint = qgis.gui.QgsMapToolEmitPoint(w.canvas)<br>> w.canvas.setMapTool(emitPoint)<br>> w.connect(emitPoint, PyQt4.QtCore.SIGNAL("canvasClicked(QgsPoint)"),<br>> printHello)<br>> <br>> 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 &,Qt::MouseButton)"), self.export)</div></div><div><br></div><div><br></div><div>Pay attention to "canvasClicked(const QgsPoint &,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>