[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] new style signal/slot and sender() method
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2010-08-27 16:23:50
Message-ID: be8f7574f130e385e6313372101c3e0d () localhost
[Download RAW message or body]
On Fri, 27 Aug 2010 17:14:40 +0200, Erik Janssens
<Erik.Janssens@conceptive.be> wrote:
> Hi,
>
> We are switching our codebase to new style signal/slot and
> this is a strange issue.
>
> When connecting a QComboBox currentIndexChanged signal to
> a slot :
>
> def granularity_changed(self, idx):
> granularity = self.sender().get_value()
>
> sender returns the right object, however, when using
> the pyqtSlot decorator :
>
> @QtCore.pyqtSlot(int)
> def granularity_changed(self, idx):
> granularity = self.sender().get_value()
>
> sender returns None.
>
> Is this a known issue ? If so, can anybody shed some light
> on the reasoning behind this ?
As far as I am aware this was fixed in PyQt v4.7.4.
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic