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-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to