All Questions
Tagged with group-layer order
1 question
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('...