Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 68359

The description of the types of features included in a map, usually displayed in the map layout.

2 votes
0 answers
259 views

Programmatically adding folders & layers to QgsComposerLegend

I've been building up QgsLayerTree object with a directory structure that reflects the desired legend. Specifically, I'd like the Group(s) to be titles and their contained layers to legend items. … You can see here: The code I'm using is as follows: ### LEGEND composerLegend = QgsComposerLegend(c) composerLegend.setColumnCount(3) composerLegend.setEqualColumnWidth(True) …
Nona Yerbiz's user avatar
0 votes

programmatically populating the QGIS Legend

Then I created a legend folder into which I added stub memory polygon layer with a zero dimension polygon giving it the corresponding query's color. … I then pass this group to the legend for processing. …
Nona Yerbiz's user avatar
3 votes
1 answer
246 views

programmatically populating the QGIS Legend [closed]

So I have a function in a utility class that creates my Legend for the composer. … should display a colored box for the groups The layers should not show up in the legend even though they do in the map …
Nona Yerbiz's user avatar
2 votes
0 answers
278 views

Approach to controlling which layers display in a QgsComposerLegend

Neither of them work which is troubling because other than pruning the layerRootTree in advance of composer.addItem(legend), there seems to be no way to display a layer in print without also displaying … ).findGroup('Land Uses')) composerLegend.synchronizeWithModel() composerLegend.updateLegend() c.addItem(composerLegend) In the second approach the subgroups don't render properly in the legend
Nona Yerbiz's user avatar