<div dir="ltr">It's a visual guidance to navigate your layer tree. It could help you differentiate, for example, between data authorities (see an example at [1]). Additionally, as some user stated in <a href="http://GIS.SE" target="_blank">GIS.SE</a>, plugin authors would be able to differentiate groups created by their plugins from other groups. <div><br></div><div>I by no means think it's indispensable, but would consider it nice to have.</div><div><br></div><div>Regards,</div><div><br></div><div>Germán </div><div>--</div><div>[1] <a href="http://downloads.tuxfamily.org/tuxgis/otros/layertree.png">http://downloads.tuxfamily.org/tuxgis/otros/layertree.png</a> </div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-07 22:07 GMT-05:00 Nathan Woodrow <span dir="ltr"><<a href="mailto:madmanwoo@gmail.com" target="_blank">madmanwoo@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey <span style="line-height:19.7999992370605px">Germán,</span><div><span style="line-height:19.7999992370605px"><br></span></div><div><span style="line-height:19.7999992370605px">What is the purpose of being able to set different group icons?  </span></div><span class="HOEnZb"><font color="#888888"><div><span style="line-height:19.7999992370605px"><br></span></div></font></span><div><span class="HOEnZb"><font color="#888888"><span style="line-height:19.7999992370605px">- Nathan<br></span><br></font></span><div class="gmail_quote"><div><div class="h5">On Sun, 8 Mar 2015 at 02:06 Germán Carrillo <<a href="mailto:carrillo.german@gmail.com" target="_blank">carrillo.german@gmail.com</a>> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi All, <div><br></div><div>I'd like to add a "Set Group Icon..." action to the context menu for groups in the layer tree. I'm preparing a pull request for that.</div><div><br></div><div>Everything is working fine, but I have a doubt on how to make the QGIS project to store the QIcon (location), so that when the project is open again, the QIcon can be constructed properly.</div><div><br></div><div>My first attempt was to store the QIcon path in the project, which works fine when the icon is set through QGIS GUI. However, it wouldn't work for PyQGIS users, who pass a QIcon object to the setIcon() method of QgsLayerTreeGroup. Since QIcon does not store its image file path, it would not be possible to access the path and store it in the project file. I would have to force PyQGIS users to set the image file path via get/set functions iconPath()-setIconPath(), which is not very elegant, but it's the only solution I see.</div><div><br></div><div>Do you know any other solution for this problem? Perhaps something about storing the QIcon somehow serialized? </div><div><br></div><div>Regards, </div><div><br></div><div>Germán Carrillo<br>-- <br><div>-----------<br>  |\__  <br>(:>__)(<br>   |/    <br>Soluciones Geoinformáticas Libres                            <br><a href="http://geotux.tuxfamily.org/" target="_blank">http://geotux.tuxfamily.org/</a><br><a href="http://twitter.com/GeoTux2" target="_blank">http://twitter.com/GeoTux2</a><br></div>
</div></div></div></div><span class="">
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a></span></blockquote></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">-----------<br>   |\__  <br>(:>__)(<br>   |/    <br><br>Soluciones Geoinformáticas Libres                            <br><a href="http://geotux.tuxfamily.org/">http://geotux.tuxfamily.org/</a><br><a href="http://twitter.com/GeoTux2">http://twitter.com/GeoTux2</a><br></div>
</div>