学习Qt有一点时间了,但之前都是在debug版本下进行编译运行,偶然切换到release版本下,却出现了如下错误:

错误提示:
 
This application failed to start because it could not find or load the Qt platform plugin “windows”.
 
Reinstall the application may fix this problem.
 

    上网 Baidu / Google一下,得到如下解决方法:
 

复制 Qt安装目录下的./Tools/QtCreator/bin/qt.conf 文件和 整个的 ./Tools/QtCreator/bin/plugins/platforms 文件夹到 release 目录下即可。

qt.conf 的内容如下:
 
[Paths]
Libaries=../lib/qtcreator
Plugins=plugins
Imports=imports
Qml2Imports=qml

./plugins/platforms 目录中包含三个动态库文件:qminimal.dll 、 qoffscreen.dll 、qwindows.dll 。

 

http://blog.csdn.net/jan5_reyn/article/details/38955691

相关文章:

  • 2021-12-13
  • 2021-10-02
  • 2021-12-19
  • 2022-12-23
  • 2021-11-14
  • 2022-01-17
  • 2021-08-08
  • 2022-12-23
猜你喜欢
  • 2018-07-31
  • 2021-12-11
  • 2021-10-03
  • 2021-05-28
  • 2022-01-16
  • 2021-10-24
  • 2021-04-30
相关资源
相似解决方案