the example code format was submitted incorrectly, here again:
self.myLayerComboBox.layerChanged.connect(self.myConnectMethod)
@pyqtSlot(QgsMapLayer)
def myConnectMethod(self, layer)
pass
Any idea? thanks.
___
QGIS-Developer mailing list
QGIS-Dev
Hi everyone!
I've developed some Qgis plugins, everything was fine until I updated
Python to 3.10 version, some of these plugins have problems with the
/pyqtSlot/ with the function /layerChanged/, an example code:
self.myLayerComboBox.layerChanged.connect(self.myConnectMethod)
@pyqtSlot