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

QGIS is a cross-platform GIS application licensed under the GNU General Public License.

1 vote
1 answer
66 views

QgsComposerTextTableV2 minimal implementation?

I would like to use the richer data and styling API QgsComposerTextTableV2 offers. However I get this error when adding it to the composer: TypeError: QGraphicsScene.addItem(QGraphicsItem): argument …
Nona Yerbiz's user avatar
2 votes
2 answers
173 views

Dynamically adding in-memory QgsVectorLayer triggers a popup in the UI - how to eliminate

I use this function to create layers that display results to my queries. However a dialog always pops up asking me to confirm the crs. Is it possible to suppress this ? def addResultLayer(name, f …
Nona Yerbiz's user avatar
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. How …
Nona Yerbiz's user avatar
0 votes

programmatically populating the QGIS Legend

I solved this by applying a single color to all the polygons captured by my query across layers. Then I created a legend folder into which I added stub memory polygon layer with a zero dimension polyg …
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. It looks something like this: def addLegend(self, c, r, L, tree_root): L.model().setLayerSetAndGroups(tree_root) …
Nona Yerbiz's user avatar
2 votes
0 answers
278 views

Approach to controlling which layers display in a QgsComposerLegend

I've tried 2 approaches to control what shows up in print legends. Neither of them work which is troubling because other than pruning the layerRootTree in advance of composer.addItem(legend), there se …
Nona Yerbiz's user avatar