Feature request #1975
ability to create legend groups via the QGis api
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | Martin Dobias | ||
Category: | Python plugins | ||
Pull Request or Patch supplied: | Resolution: | fixed | |
Easy fix?: | No | Copied to github as #: | 12035 |
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.
History
#1 Updated by Giovanni Manghi about 15 years ago
This feature was already requested already in the middle of some discussion here in the Trac :) very useful indeed +1
#2 Updated by Martin Dobias almost 15 years ago
- Resolution set to fixed
- Status changed from Open to Closed
Resolved with #2185.