<div dir="ltr"><div>Hey,</div><div><br></div>QgsMapLayerRegistry.instance().mapLayers() will give you everything.<div><br></div><div>- Nathan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 26, 2014 at 12:44 AM, Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
In API python there a method to retrieve the list of all the layers in<br>
the project ?<br>
<br>
I check in the API and find the<br>
qgis.core.QgsMapLayer<br>
but it is the single layer.<br>
<br>
Also I find the<br>
qgis.core.QgsLayerTree<br>
<br>
But it seem not only layers but also groups.<br>
There is a container for all and only layers ?<br>
<br>
Thx,<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
-----------------<br>
Andrea Peri<br>
. . . . . . . . .<br>
qwerty àèìòù<br>
-----------------<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></font></span></blockquote></div><br></div>