[PySide] Question about PySide6.QtCore.QThreadPool().start() (only one signature)

Boštjan Mejak bostjan.xperia at gmail.com
Sat Jul 24 13:51:28 CEST 2021


In PyQt6, there are two signatures for the start() method of QThreadPool():

1. PyQt6.QtCore.QThreadPool().start(QRunnable, priority: int = 0)
2. PyQt6.QtCore.QThreadPool().start(Callable[[], None], priority: int = 0)

In PyQt6, you don’t need a runnable, you just simply pass a callable (a
Python function/method) to the start() method (that is some sort of a
long-running task) and be done with it.

The second signature of the start() method of QThreadPool() in PyQt6
(listed above) is the only thing that is keeping me away from PySide6,
because PySide6 only has one signature for the start() method (only the
first signature, listed above).

Will PySide6 ever provide the second signature for the start() method, so
that we won’t be forced to create a runnable, but we would be able to
simply pass a callable to it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20210724/cc0add1b/attachment.html>

More information about the PySide mailing list