Guest User

Untitled

a guest
Jan 22nd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. root = QgsProject.instance().layerTreeRoot()
  2. myGroup1 = root.addGroup("My Group 1")
  3.  
  4. myGroup1 = root.insertGroup(2, "My Group 1")
  5.  
  6. myGroupA = myGroup1.addGroup("My Group A")
  7.  
  8. iface.legendInterface().addGroup( 'abc')
Add Comment
Please, Sign In to add comment