[Qgis-developer] connecting new style CUSTOM signal to existing Qgis object in Qgis2.0
madmanwoo at gmail.com
Thu Sep 26 03:16:45 PDT 2013
What signal are you trying to connect to?
On Thu, Sep 26, 2013 at 8:26 AM, Jeff Cavner <jcavner at ku.edu> wrote:
> For Python plugin development how do you connect a custom signal using the
> new style of signals and slots to a PyQgis object, specifically to
> QgsProject.instance()? Having a hard time with this given the pyqtSignal
> is defined as a python Class static variable, and then bound using
> self.###.connect etc. Is there a way to create custom signals in the new
> style for objects that you don't necessarily have access to their
> constructor, like for existing Qgis objects?
> Additionally I noticed that from the python console in Qgis 2.0, the old
> style of signals still work (connected to QgsProject) I compiled 2.0 from
> source for Ubuntu, and am running both 1.8 and 2.0. But 2.0 doesn't seem
> to complain about old style signals at the python console, was wondering if
> it is sharing the 1.8 version of PyQt with v.1 sip, and that is what is
> causing it not to complain.
> Any help would be greatly appreciated.
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qgis-developer