【QT】报错 This application failed to start because it could not find or load the Qt platform plugin...

问题描述

在将自己编好的程序的release给到同事运行时出现了如下错误:
【QT】报错 This application failed to start because it could not find or load the Qt platform plugin...
根据网上的多个方案,我均进行了尝试,最终获得一个可行性方案:

解决方案:

1.可能缺少复制 libEGL.dll

2.需要把C:\Qt\Qt5.6.0\5.6\mingw49_32\plugins\ platforms\qwindows.dll,带红色的复制到你的exe执行文件目录。就是platforms文件夹,里面一个qwindows.dll

参考自:https://www.cnblogs.com/mmix2009/p/3536825.html