Feature request #1975
ability to create legend groups via the QGis api
|Pull Request or Patch supplied:||Resolution:||fixed|
|Easy fix?:||No||Copied to github as #:||12035|
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.