[Qgis-developer] QgsComposition itemRemoved signal in Python passes a QObject parameter
G. Allegri
giohappy at gmail.com
Fri Feb 6 08:30:42 PST 2015
I haven't enough experience with SIP to spot the problem.
Connecting to QgsCompisition itemRemoved signal I obtain a QObject
parameter intead of QgsComposerItem.
E.g.
def <something>(self):
self.composition.itemRemoved.connect(self.itemRemovedFromComposer)
def itemRemovedFromComposer(self,*item*):
pass
the item parameter is a QObject, while the signal signature is void
itemRemoved( QgsComposerItem* )
Any help?
Thanks,
giovanni
PS: QObject.connect(self.composition, SIGNAL("( QgsComposerItem*
)"),self.itemRemovedFromComposer) doesn't work.
--
Giovanni Allegri
http://about.me/giovanniallegri
Twitter: https://twitter.com/_giohappy_
blog: http://blog.spaziogis.it
GEO+ geomatica in Italia http://bit.ly/GEOplus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150206/e883e17a/attachment.html>
More information about the Qgis-developer
mailing list