学习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
时间: 2024-11-03 21:53:53