运行PyQt5程序时QObject::moveToThread 问题的解决

373 阅读1分钟

问题

QObject::moveToThread: Current thread (0x55b4515f5b00) is not the object's thread (0x55b455a2d2b0).

Cannot move to target thread (0x55b4515f5b00)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/wanyi/code/lab/PPOCRLabel/venv/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

解决方法

Downgrade to python 3.8.19

Downgrade opencv-python to version 4.2.0.32