解决Qt编译动态链接库could not find or load the Qt platform plugin "windows" in.问题

Posted 一年一度

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决Qt编译动态链接库could not find or load the Qt platform plugin "windows" in.问题相关的知识,希望对你有一定的参考价值。

最近用Qt5做了一个项目的界面,在编译成可执行文件EXE之后,运行文件,提示:

This application failed to start because it could not find or load the Qt platfo
rm plugin "windows"
in "".

Reinstalling the application may fix this problem.

查了很多资料,试了很过方法,后来发现将D:\Anaconda2\Library\plugins下的platforms文件夹复制到项目文件目录下(要复制整个文件夹),即可解决该问题。

以上是关于解决Qt编译动态链接库could not find or load the Qt platform plugin "windows" in.问题的主要内容,如果未能解决你的问题,请参考以下文章

Could not find the Qt platform plugin windows错误解决方法

Could not find the Qt platform plugin windows错误解决方法

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

关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法

qmlscene: could not find a Qt installation of ''

Qt for android报错 Could not find method ?buildscript() for arguments