Tuesday, 15 March 2016

pyqgis - How to move a layer in QGIS Toc above an existing group?


If in QGIS TOC a group already exists and I add a new layer via


QgsVectorLayer* lyr= mQGisIface->addVectorLayer(uri->uri(),Title, myProviderName);


the new layer will be inserted within the group. How can I move it outside/above the group?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...