<div dir="ltr"><font face="georgia, serif">Hi,</font><div><font face="georgia, serif"><br>I am working on a plugin and want to get a signal<div class="gmail_default" style="display:inline"> </div>when the <div class="gmail_default" style="font-family:georgia,serif;display:inline">

symbology</div> of a vector layer is changed by the user. In the doc, there is a signal that seems to fit (<br>
<a href="http://qgis.org/api/classQgsVectorLayer.html#a403f235d3743aa59bb3aad69a72a5705" target="_blank">http://qgis.org/api/classQgsVectorLayer.html#a403f235d3743aa59bb3aad69a72a5705</a><br>)<div class="gmail_default" style="display:inline">

.</div><br></font></div>















<div><font face="georgia, serif"><br>I have <div class="gmail_default" style="display:inline">tried two</div> method<div class="gmail_default" style="display:inline">s</div> called : </font><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<font face="georgia, serif">QObject.connect(self.iface.activeLayer(), SIGNAL("rendererChanged()"), self.<div class="gmail_default" style="display:inline"></div>DoSomething)</font></blockquote>
<font face="georgia, serif"><br>I have also tried : </font></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<font face="georgia, serif">
self.iface.activeLayer().rendererChanged.connect(self.<div class="gmail_default" style="display:inline"></div>DoSomething)</font></blockquote><font face="georgia, serif"><br></font><div class="gmail_default"><font face="georgia, serif">On os x mavericks nothing happens with the first method and for the second I have a error :</font></div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="georgia, serif">AttributeError: 'QgsVectorLayer' object has no attribute 'rendererChanged'</font></blockquote>

</div><div><font face="georgia, serif"><br></font></div><div><div class="gmail_default"><font face="georgia, serif">But on Debian, I can get the signal but just for the layer which is selected when the plugin is run ; On the other layers, if I change the color, nothing happens.</font></div>

<font face="georgia, serif"><br>Regards,<br>Guillaume<br><br>--<br>This mail was sent using 100% recycled electrons.</font><br><div><div class="gmail_default" style="font-family:georgia,serif">
</div></div></div></div></div>