QThreadPool missing contains

Juan José Gómez Romera jjgomera at gmail.com
Wed Jan 18 16:27:27 GMT 2023


As you can see here <https://doc.qt.io/qt-6/qthreadpool.html#contains>,
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/a7a549e7/attachment.htm>


More information about the PyQt mailing list