Hello!

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?
_______________________________________________
PySide mailing list
PySide@qt-project.org
https://lists.qt-project.org/listinfo/pyside

Reply via email to