|
Hi Luca: did you know that the call to QObject.connect changed in version 1.3? If you look at the API documentation for the development version you will see the new format. The change is subtle, it changed from: SIGNAL("canvasClicked(QgsPoint &,Qt::MouseButton)") to: SIGNAL("canvasClicked(const QgsPoint &,Qt::MouseButton)") I handle the change in my Image Clipper plugin as follows: theVersionInt = QGis.QGIS_VERSION_INT if theVersionInt / 100 > 102: # must conform to newer API standard call QObject.connect(self.emitPoint, SIGNAL("canvasClicked(const QgsPoint &,\ Qt::MouseButton)"), self.setClipWindow) else: # version is 1.2 or earlier - use older API standard call QObject.connect(self.emitPoint, SIGNAL("canvasClicked(QgsPoint &,\ Qt::MouseButton)"), self.setClipWindow) I hope that this helps you. Bob On 10/13/2009 9:43 AM, [email protected] wrote: Hi, I opened a bug report: https://trac.osgeo.org/qgis/ticket/2006with API change on QGIS 1.3.0 I cannot connect signal canvasClicked with a function. In that bug report I attached a sample plugin that opens a message box when you click on the map. Just unzip it in your python/plugins directory and enable it in the "Plugins" menu. _______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user |
No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.421 / Virus Database: 270.14.13/2432 - Release Date: 10/13/09 06:35:00
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
