[Qgis-developer] Get a signal when the symbology changed

Guillaume GIMENO gimeno.g at gmail.com
Wed Feb 26 01:15:58 PST 2014


I am working on a plugin and want to get a signal
when the
 of a vector layer is changed by the user. In the doc, there is a signal
that seems to fit (

I have
tried two
called :

> QObject.connect(self.iface.activeLayer(), SIGNAL("rendererChanged()"),
> self.
> DoSomething)

I have also tried :

>  self.iface.activeLayer().rendererChanged.connect(self.
> DoSomething)

On os x mavericks nothing happens with the first method and for the second
I have a error :

> AttributeError: 'QgsVectorLayer' object has no attribute 'rendererChanged'

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.


This mail was sent using 100% recycled electrons.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140226/174f605e/attachment.html>

More information about the Qgis-developer mailing list