问题
qt windows :This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
原因以及解决方案
出现问题: 用windeployqt 命令去打包, 我们都知道会生成一系列文件
进入查看platforms
原以为我觉得打包后程序跑起来没问题, 谁知道会报这个问题。 此时问题在于你的exe程序编译连接qt 版本platforms文件夹 qwindows.dll 与你打包的platforms文件夹 qwindows.dll 是有差异的(鼠标放在对应dll上面查看文件版本, 文件大小信息)。此时将对应编译连接qt版本plugins 文件夹下platforms文件夹 qwindows.dll 拷贝过去即可。