*** GMX Spamverdacht *** Re: [PyQt] pyqt4 signal/slot using PyObject* and shortcut

Andreas Pakulat apaku at gmx.de
Fri Apr 27 16:33:22 BST 2007


On 27.04.07 16:19:37, Phil Thompson wrote:
> On Friday 27 April 2007 3:45 pm, Andreas Pakulat wrote:
> > You don't keep a reference to the object that you send via the signal.
> > You need to do that, as a queued connection behaves different from a
> > direct connection (which is a direct function call). Thats why you see
> > all kinds of weird results.
> 
> Sorry, but that's wrong. PyQt handles the reference counts of arguments to 
> shortcircuit signals automatically.

Uhm, right. I suspected a missing reference and didn't test the original
code :( Thanks for correcting my nonsense.

Andreas

-- 
Hope that the day after you die is a nice day.


More information about the PyQt mailing list