0

Want to bring the active layer to top of the legend interface layer list.

13
  • I don't have groups(layers are not grouped) and the above code is not working for me
    – drama
    Jun 12 '17 at 12:34
  • @drama - Can you specify whether you want the order changed in the Layers Panel or the Layer Order Panel?
    – Joseph
    Jun 12 '17 at 12:35
  • layers panel actually
    – drama
    Jun 12 '17 at 12:36
  • @drama - Can you please edit your question to include the code you used? The answer to the link in my previous comment should work :)
    – Joseph
    Jun 12 '17 at 12:39
  • ya sure here it is, iface1.setActiveLayer(layer) iface1.legendInterface().moveLayer(layer, 0)
    – drama
    Jun 12 '17 at 12:44

Browse other questions tagged or ask your own question.