Ok, I eventually solved my problem. In case others would face the same problem, use "iface.legendInterface().layers()" instead of "iface.mapCanvas().layers()", the latter only providing already selected layers.

Benoît
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to