Qt-c++桌面编程报错:qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "",已解决

语言:c++

编译库:Qt GUI,qt5.12.1

软件类型:Qt application,qt桌面软件

运行平台:window 10

?
按照【https://www.devbean.net/2012/08/qt-study-road-2-hello-world/】里的教程在QtCreator IDE里一步步进行,结果...报了这个错误:
【qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""】
:
参考【https://blog.csdn.net/xzpblog/article/details/79126250】
原因:在window里的直接运行QtCreator IDE编译的软件时,相关依赖库找不到,就报错了
在cmd里用“windeployqt”命令运行: windeployqt  xxx.exe  ,
会将相关依赖全部打包好,复制到当前运行文件夹里,
然后再直接运行就可以了运行成功了

posted @ 2019-04-27 22:09  羽翼未丰之冲天槊  阅读(8942)  评论(1编辑  收藏  举报