Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
12 votes
4 answers
9k views

Moving layers in the Layer Order Panel using PyQGIS

The following is a simple setup containing a group with three layers. The code I use adds a new layer at the end of this group: root = QgsProject.instance().layerTreeRoot() group = root.findGroup('...
Joseph's user avatar
  • 76.3k