[PyKDE] sender() in PyQt4 returns wrong object
apaku at gmx.de
Tue Feb 21 16:14:50 GMT 2006
On 21.02.06 15:31:29, Phil Thompson wrote:
> On Tuesday 31 January 2006 11:41 pm, Andreas Pakulat wrote:
> > Hi,
> > I tried to use sender() in a slot connected to a signal of a QWidget
> > derived class, however sender() always returns a QObject instance
> > instead of the original QWidget-derived one.
> > Is this by purpose and thus sender() is practically not usable in PyQt4
> > or am I just missing something?
> If this is still a problem can you send me a test case?
See attached file, sender() works for a QPushButton but not for the
QWidget derived class.
Don't look now, but there is a multi-legged creature on your shoulder.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 916 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060221/85a7fe94/main.py
More information about the PyQt