[Qgis-developer] Layer order in TOC

Alexander Bruy alexander.bruy at gmail.com
Thu Mar 11 14:15:30 EST 2010


Hi list,

is there a way to get a list of layers in the order in which they are
listed in the TOC?
When I use QgsMapLayerRegistry.instance().mapLayers() I get layers
in the order different from the order in the TOC. For example in TOC
I have layers:
layer_01
layer_02
layer_03
layer_04
when I retrieve layer list with QgsMapLayerRegistry I got:
layer_04
layer_01
layer_03
layer_02

Thanks
-- 
Alexander Bruy


More information about the Qgis-developer mailing list