[PyQt] Signal/slot bug when doing multiple connects and Qt::UniqueConnection

Phil Thompson phil at riverbankcomputing.com
Mon Apr 28 09:01:02 BST 2014


On 28/04/2014 8:26 am, Giuseppe Corbelli wrote:
> Hi all
> I've run into an "interesting" side effect, admittedly misusing the
> signal-slot mechanism. Basically I'm doing multiple connections using
> the Qt::UniqueConnection parameter. As expected the slot is run always
> a single time, but there's something weird going on in the background.
> The receivers() method returns increasing numbers and this little
> example will kill the CPU in a few iteractions.

Does a C++ version do the same?

Phil


More information about the PyQt mailing list