This application failed to start because it could not find or load the Qt platform plugin windows

This application failed to start because it could not find or load the Qt platform plugin "windows"问题解决方法

参考了不少博客,很多都是去拷贝qt的dll,其实qt已经给了我们一个强大的发布程序的工具,直接用就好了,仅供参考

开发环境

vs2019+qt.5.14.2

现象

debug环境编译没问题,release报如题错误

解决办法

1、开始→qt→打开qt自带命令行
This application failed to start because it could not find or load the Qt platform plugin windows
2、cd 进入release目录(exe目录)
3、输入 windeployqt xxxxx.exe
This application failed to start because it could not find or load the Qt platform plugin windows
在运行release,我这边亲测解决。