[Qgis-developer] QT5 signals/slots in QGIS3

Matthias Kuhn matthias at opengis.ch
Fri Mar 3 00:54:10 PST 2017


Hi,

here on fedora it works


def test(layer, features):
    print(layer, features)

l.committedFeaturesAdded.connect(test)


So it seems to be a build issue, not a change in QGIS itself.

Matthias

On 03/02/2017 02:49 PM, Enrico Ferreguti wrote:
> Hi, all
> 
> I don't see answer about this. Should I open a issue ticket?
> 
> Best Regards
> 
> 2017-03-01 10:35 GMT+01:00 Enrico Ferreguti <enricofer at gmail.com
> <mailto:enricofer at gmail.com>>:
> 
>     I am migrating a plugin to QGIS3 and under Windows with the latest
>     qgis-dev release(build 1182816) I get an error connecting to well
>     know QgsVectorLayer signals:
> 
>     vectorlayer.committedAttributesAdded.connect(self.attributes_added)
>     or
>     vectorlayer.committedFeaturesAdded.connect(self.attributes_added)
> 
>     give:
> 
>     TypeError: C++ type 'QList' is not supported as a signal argument type
> 
>     I give a look to PyQT5 signal/slot model and I haven't found
>     something different from PyQT4 so don't understand if this is a bug
>     or a new QGIS3 signal behaviour...
> 
>     Is there somewhere a raw class/methods changes list from QGIS2 to QGIS3?
> 
>     Best Regards and thanks to all for the wonderful work!
> 
> 
> 
> 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 


More information about the Qgis-developer mailing list