[Qgis-user] Retrieve in python api the list of layers in a project

Andrea Peri aperi2007 at gmail.com
Wed Jun 25 07:44:08 PDT 2014


Hi,

In API python there a method to retrieve the list of all the layers in
the project ?

I check in the API and find the
qgis.core.QgsMapLayer
but it is the single layer.

Also I find the
qgis.core.QgsLayerTree

But it seem not only layers but also groups.
There is a container for all and only layers ?

Thx,


-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------



More information about the Qgis-user mailing list