QThreadPool missing contains

henry.wede at yahoo.com henry.wede at yahoo.com
Wed Jan 18 17:36:07 GMT 2023


 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.

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230118/c1cd3065/attachment-0001.htm>


More information about the PyQt mailing list