Thanks Giuseppe,<div>I didn't reply to myself again, but I already found that answer, and it was right :)</div><div>I also need to do a mapCanvas refresh.</div><div><br></div><div>I think that a signal should be emitted when e renderer is assigned to a layer, and the QgsLegend should listen to it to refresh itself automatically. Don't you think?</div>
<div><br></div><div>giovanni<br><br><div class="gmail_quote">2012/11/28 Giuseppe Sucameli <span dir="ltr"><<a href="mailto:sucameli@faunalia.it" target="_blank">sucameli@faunalia.it</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Giovanni,<br>
<br>
On Tue, Nov 27, 2012 at 11:30 AM, G. Allegri <<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>> wrote:<br>
> If I pan/zoom I see<br>
> the new renderer is being used, though the legend is'n updated.<br>
<br>
you can update it using<br>
iface.legendInterface().refreshLayerSymbology( layer )<br>
<br>
Cheers.<br>
<br>
><br>
> giovanni<br>
><br>
> 2012/11/27 G. Allegri <<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>><br>
><br>
>> I need to replicate the theming of a vector layer to another one.<br>
>> I thought that cloning the oringinal renderer (being it V2 or not) and<br>
>> applying it to other layer would be enough, but id doesn't have effects. The<br>
>> other layer is applied the default (random) styling.<br>
>> Probably I've misunderstood the renderer mechanism. How should one procede<br>
>> to obtain it?<br>
>><br>
>> giovanni<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Giuseppe Sucameli - Faunalia<br>
</font></span></blockquote></div><br></div><div><br></div><div><br></div>