目录
具体错误: QObject::moveToThread: Current thread (0x31e27f0) is not the object’s thread (0x3346700). Cannot move to target thread.
wsl2 pyqt5开发(用pip安装),opencv==4.10.0,好不容易pyqt5可以可视化,实在不想再动了,因此选择给opencv降级至4.3.0.36。
以下是各个package的具体版本信息。
名称 | 版本 |
---|---|
WSL2 | ubuntu20.04 |
pyqt5 | 5.15.11 |
pyqt5-plugins | 5.15.9.2.3 |
pyqt5-qt5 | 5.15.2 |
pyqt5-sip | 12.15.0 |
pyqt5-tools | 5.15.9.3.3 |
opencv-python | 4.3.0.36 |
参考:
- https://stackoverflow.com/questions/46449850/how-to-fix-the-error-qobjectmovetothread-in-opencv-in-python