Qt:QRunnable的moveToThread问题(QObject::moveToThread: Current thread (***) is not the object‘s thread)

windows下YOLOV5的项目移动到linux中出现的错误

/home/xtd/图片/2023-05-16 11-25-52 的屏幕截图.png

opencv的版本过高,通过降低版本

pip install opencv-python==4.2.0.32 -i https://pypi.tuna.tsinghua.edu.cn/simple

第一个问题解决

第二显示QT插件出现错误,

按照这个博主:Ubuntu18.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“问题_ubuntu qt xcb_lihaha789的博客-CSDN博客

一步一步操作,然后我发现没有qtcreator,运行后会提示没有这个命令,下载后,运行发现没有错误的地方,回到程序居然能运行,居然是少了qtcreator的原因

猜你喜欢

转载自blog.csdn.net/weixin_47037450/article/details/130702010