Thanks Giuseppe,
I didn't reply to myself again, but I already found that answer, and it was
right :)
I also need to do a mapCanvas refresh.

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?

giovanni

2012/11/28 Giuseppe Sucameli <[email protected]>

> Hi Giovanni,
>
> On Tue, Nov 27, 2012 at 11:30 AM, G. Allegri <[email protected]> wrote:
> > If I pan/zoom I see
> > the new renderer is being used, though the legend is'n updated.
>
> you can update it using
> iface.legendInterface().refreshLayerSymbology( layer )
>
> Cheers.
>
> >
> > giovanni
> >
> > 2012/11/27 G. Allegri <[email protected]>
> >
> >> I need to replicate the theming of a vector layer to another one.
> >> I thought that cloning the oringinal renderer (being it V2 or not) and
> >> applying it to other layer would be enough, but id doesn't have
> effects. The
> >> other layer is applied the default (random) styling.
> >> Probably I've misunderstood the renderer mechanism. How should one
> procede
> >> to obtain it?
> >>
> >> giovanni
> >
> >
> >
> > _______________________________________________
> > Qgis-developer mailing list
> > [email protected]
> > http://lists.osgeo.org/mailman/listinfo/qgis-developer
> >
>
>
>
> --
> Giuseppe Sucameli - Faunalia
>
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to