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

最近试着了解 c++,接触到了QT,写了一个测试程序,在开发环境下正常后移到非开发环境,报错

 网上找资料说是少了platforms文件夹中的dll,把里面所有的dll复制到执行程序目录,还是提示,继续找说是要整个目录复制过来,即 platforms文件夹与执行程序同目录,运行正常.

最终结构如下:

 

猜你喜欢

转载自www.cnblogs.com/Wicher-lsl/p/12374979.html
今日推荐