<div dir="ltr">Having read the thread about the new legend merge, I'm wondering if there is a summary on how to work with it via Python.<div><br></div><div>I have a plugin that is broken as it relied on being able to move layers up and down in the legend by grabbing a reference to the QTreeWiget (now gone) and working with the Qt methods available to it.</div>
<div><br></div><div>I need to:</div><div><br></div><div>* insert a layer at a give location</div><div>* move a layer to a new position</div><div>* remove a layer</div><div><br></div><div>It seems we could provide a higher level interface for moving layers around. The method of adding an existing layer to the legend in a new position then deleting its twin didn't work for me.</div>
<div><br></div><div>Or perhaps I'm missing something?</div><div><br></div><div>-gary<br clear="all"><div><br></div>-- <br><div dir="ltr">-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-<br>Gary Sherman<br>Chair, QGIS Project Steering Committee<br>
-Open Source GIS Books:<br> *<a href="http://locatepress.com" target="_blank">http://locatepress.com</a><div>-Alaska Novel:</div><div> *<a href="http://alaskana.co" target="_blank">http://alaskana.co</a></div><div>-Geospatial Consulting & Hosting:<br>
 *<a href="http://geoapt.com" target="_blank">http://geoapt.com</a><br>"We work virtually everywhere"<br>-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-</div></div>
</div></div>