[Qgis-developer] apply a cloned renderer to replicate styling
giohappy at gmail.com
Wed Nov 28 03:32:49 PST 2012
I didn't reply to myself again, but I already found that answer, and it was
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?
2012/11/28 Giuseppe Sucameli <sucameli at faunalia.it>
> Hi Giovanni,
> On Tue, Nov 27, 2012 at 11:30 AM, G. Allegri <giohappy at gmail.com> 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 )
> > giovanni
> > 2012/11/27 G. Allegri <giohappy at gmail.com>
> >> 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
> >> to obtain it?
> >> giovanni
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Giuseppe Sucameli - Faunalia
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qgis-developer