Application failed to start because it could not find or load the QT platform plugin “windows”

ぐ巨炮叔叔 提交于 2020-03-06 06:49:34

用VS 2015进行QT程序开发时,在vs界面中调试编译程序时没有问题,但是进入到生成的exe文件夹下运行exe文件是却总是跳出一个提示框:

Application failed to start because it could not find or load the QT platform plugin “windows”;这几个字困扰我许多天,尝试过网上许多方法,都不能成功。当然,在我的不懈努力下还是解决了。

 

解决方法:1. 可以吧这个exe文件拷贝到qt的安装目录下的bin目录下运行即可,比如我的C:\Qt\Qt5.8.0\5.8\msvc2015\bin;

     2. 把bin目录下的Qt5Core.dll, Qt5Gui.dll, Qt5Widgets.dll以及C:\Qt\Qt5.8.0\5.8\msvc2015\plugins\platforms拷贝到exe同级目录。platforms文件夹下有qminimal.dll, qoffscreen.dll, qwindows.dll.

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!