[QGIS-trac] [Quantum GIS] #2006: Python: cannot connect SIGNAL canvasClicked with a function

Quantum GIS qgis at qgis.org
Tue Oct 13 09:56:17 EDT 2009


#2006: Python: cannot connect SIGNAL canvasClicked with a function
---------------------------------------------------------+------------------
   Reporter:  trapanator                                 |              Owner:  borysiasty   
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.4.0
  Component:  Python plugins and bindings                |            Version:  HEAD         
   Keywords:                                             |   Platform_version:  1.3.0        
   Platform:  Windows                                    |           Must_fix:  Yes          
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 I cannot connect SIGNAL canvasClicked anymore (QGIS 1.3.0)

 this:

 QObject.connect(emitPoint, SIGNAL("canvasClicked( const QgsPoint &,
 Qt.MouseButton)"), self.clickButton)

 doesn't work anymore.

 Neither:

 QObject.connect(emitPoint, SIGNAL("canvasClicked( const QgsPoint &,
 Qt::MouseButton)"), self.clickButton)

 attached a simple plugin.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2006>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list