Overriding QThread.run and calling the default implementation

Jeremy Katz jkatz at volexity.com
Sat Jul 3 21:13:40 BST 2021


On 2/Jul/21 10:55, Maurizio Berti wrote:
> 
> This results in freezing the whole application as soon as the thread is
> started.
> Why does this happen? I believe it could be related to how threading works
> and the whole wrapping, but I'm not sure and I'd like to understand the
> reason for this anyway.

How are you detecting a freeze? On macOS 11 with PyQt and Qt 5.15.2, the
application remains responsive in my test. Removing the call to
self.button.setEnabled(False) and disconnecting the clicked signal
allows repeat clicks of the button.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x095F4F2148BF111D.asc
Type: application/pgp-keys
Size: 1757 bytes
Desc: OpenPGP public key
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210703/1b70dd01/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210703/1b70dd01/attachment.sig>


More information about the PyQt mailing list