[QGIS-trac] [Quantum GIS] #1975: ability to create legend groups via the QGis api

Quantum GIS qgis at qgis.org
Mon Oct 5 09:35:49 EDT 2009


#1975: ability to create legend groups via the QGis api
-------------------------------------------+--------------------------------
   Reporter:  leaffan                      |              Owner:  borysiasty
       Type:  enhancement                  |             Status:  new       
   Priority:  minor: annoyance             |          Milestone:            
  Component:  Python plugins and bindings  |            Version:  HEAD      
   Keywords:  api legend layer group       |   Platform_version:            
   Platform:  Windows                      |           Must_fix:  No        
Status_info:  0                            |  
-------------------------------------------+--------------------------------
 Using the QGis API it is possible to add layers to the currently opened
 project using the function addMapLayer() of the QgsMapLayerRegistry class.
 Within the GUI it is further possible to add groups to the legend (Right-
 click on legend area & *Add group*) that can hold a number of layers. Can
 this function be exposed to the API? So that new layer groups can be
 created and/or deleted and new layers can be added to already existing
 groups etc. That would help programming users to keep a clear project
 structure.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1975>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list