[PySide] Please extract this C++ Qt6 code when compiling PySide6

2021-09-03 Thread Boštjan Mejak
The start() method of PySide6.QtCore.QThreadPool should also extract this code that Qt6 has: void QThreadPool::start(std::function functionToRun, int priority) { if (!functionToRun) return; start(QRunnable::create(std::move(functionToRun)), priority); } and, of course bool

[PySide] PySide6.QtCore.QThreadPool().start() (only one signature, as opposed to PyQt6)

2021-09-03 Thread Boštjan Mejak
In PyQt6, the start() method of QThreadPool has 2 signatures: (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 (a QRunnable

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

2021-07-24 Thread Boštjan Mejak
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