[PyQt] Signal/slot bug when doing multiple connects and Qt::UniqueConnection
Phil Thompson
phil at riverbankcomputing.com
Tue Apr 29 15:05:56 BST 2014
On 28/04/2014 10:39 am, Giuseppe Corbelli wrote:
> On 28/04/2014 09:26, 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.
Fixed in tonight's PyQt4 and PyQt5 snapshots - I just hadn't bothered to
add support for UniqueConnection.
Thanks,
Phil
More information about the PyQt
mailing list