[PyKDE] QSocket.setSocket problem resolved

Phil Thompson phil at river-bank.demon.co.uk
Fri Nov 30 14:24:21 GMT 2001


Michael Ferraro wrote:
> 
> Sorry
> 
> It seems that the QSocket object needs a parent -- don't we all :}

I think the actual problem was that you weren't keeping a reference to
the Python object around. Giving it a parent solves the problem - or
saving the object in something that doesn't go out of scope at the end
of the function would also work.

Phil




More information about the PyQt mailing list