QThreadPool missing contains

Phil Thompson phil at riverbankcomputing.com
Wed Jan 18 22:19:53 GMT 2023


It was added to Qt v5.15.1, another example of Qt breaking their 
compatibility rules.

I may add it to the next PyQt5 release but I need to work out the 
implications for PyQt-builder.

Phil

On 18/01/2023 17:36, henry.wede at yahoo.com wrote:
> Oops, I was looking at the wrong documentation.Thanks for pointing that 
> out.
> 
>     On Wednesday, January 18, 2023 at 09:27:40 AM MST, Juan José Gómez
> Romera <jjgomera at gmail.com> wrote:
> 
>  As you can see here, QThreadPool.contains was introduced in Qt6, so
> it don't exist in Qt5
> 
> El mar, 17 ene 2023 a las 21:26, henry.wede at yahoo.com
> (<henry.wede at yahoo.com>) escribió:
> 
> Hello,
> Is QThreadPool missing "contains" or am I doing something wrong?
> 
>>>> from PyQt5.QtCore import QThreadPool, QRunnable>>> TP = 
>>>> QThreadPool()>>> Check = TP.contains(Whatever)Traceback (most recent 
>>>> call last):  File "<stdin>", line 1, in <module>AttributeError: 
>>>> 'QThreadPool' object has no attribute 'contains'
> 
> Yes, I have tried it with "proper code" and the result is the same.
> Thanks for your insight.


More information about the PyQt mailing list