在利用Qt Creator编写上位机时,release模式调试时遇到了
This application failed to start because it could not find or load the Qt platform plugin "windows".
Available platform plugins are: minimal, offscreen, windows.
Reinstalling the application may fix this problem.
这个问题,找了一些博客,但都是解决
This application failed to start because it could not find or load the Qt platform plugin “windows”.
Reinstalling the application may fix this problem.
这个问题的,说是对Qt安装目录下的plugins文件下的platforms文件,将其中的.dll文件放到自己的文件夹下,
但我照做发现依旧会出现这个问题。
最后发现是由于我的platforms文件下有多个.dll文件,执行.exe时不能正确寻找到qwindows.dll文件
解决方法:
在platforms文件文件下仅保留qwindows.dll文件,此后便能正常执行.exe文件了。
This application failed to start because it could not find or load the Qt platform plugin “windows”.
Reinstalling the application may fix this problem.
---------------------
作者:泉伟
来源:CSDN
原文:https://blog.csdn.net/qq_35451572/article/details/80312209
版权声明:本文为博主原创文章,转载请附上博文链接!