Details
Description
QRunnable *QRunnable::create(std::function<void ()> functionToRun) isn't available in PySide2 (5.15.8) and PySide6 (6.4.2).
It's not a dealbreaker; the workaround is to create a wrapper class that inherits from QRunnable and implements run(). It's just a little more verbose, so it'd be convenient to be able to use QRunnable.create.
Note that QRunnable.create is available in competing Qt bindings.
Attachments
Issue Links
- relates to
-
PYSIDE-1202 QFuture & QFutureInterface bindings are badly needed QtCreator python bindings
- Reported
-
PYSIDE-1896 Unclear how to use QtConcurrent from PySide6
- Reported
-
PYSIDE-2279 PySide 6.5.0: PySide6.QtCore.QRunnable.create()
- Closed
For Gerrit Dashboard: PYSIDE-2234 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
462193,10 | PySide: Add QRunnable create() | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
462258,1 | PySide: Add QRunnable create() | dev | pyside/pyside-setup | Status: ABANDONED | 0 | 0 |
536553,4 | PySide6: Fix callable invocations | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
536647,3 | PySide6: Fix callable invocations | 6.6 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
536698,3 | PySide6: Fix callable invocations | tqtc/lts-6.5 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |