Opened 15 years ago
Closed 14 years ago
#1975 closed enhancement (fixed)
ability to create legend groups via the QGis api
Reported by: | leaffan | Owned by: | wonder |
---|---|---|---|
Priority: | minor: annoyance | Milestone: | Version 1.4.0 |
Component: | Python plugins and bindings | Version: | Trunk |
Keywords: | api legend layer group | Cc: | |
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
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.
Change History (3)
comment:1 by , 15 years ago
Milestone: | → Version 1.4.0 |
---|---|
Platform: | Windows → All |
comment:2 by , 15 years ago
Owner: | changed from | to
---|
Note:
See TracTickets
for help on using tickets.
This feature was already requested already in the middle of some discussion here in the Trac :) very useful indeed +1