[QGIS-Developer] pyqtSlot decoration problems with layerChanged in Python 3.10

Xavier C. Llano xavier.corredor.llano at gmail.com
Wed Jan 5 05:45:11 PST 2022


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.



More information about the QGIS-Developer mailing list