[Qgis-developer] connecting new style CUSTOM signal to existing Qgis object in Qgis2.0
bernhard.stroebl at jena.de
Wed Sep 25 23:24:21 PDT 2013
just an idea: how about subclassing the QGIS object in question?
Am 26.09.2013 00:26, schrieb Jeff Cavner:
> 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
> __________ Information from ESET Mail Security, version of virus signature database 8844 (20130925) __________
> The message was checked by ESET Mail Security.
__________ Information from ESET Mail Security, version of virus signature database 8844 (20130925) __________
The message was checked by ESET Mail Security.
More information about the Qgis-developer