[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] sender() in PyQt4 returns wrong object
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2006-02-21 17:20:25
Message-ID: 200602211720.25701.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

On Tuesday 21 February 2006 4:14 pm, Andreas Pakulat wrote:
> 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.

Thanks - fixed in tonight's snapshot.

Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic