The error is caused because the program can't find qwindows.dll
qwindows.dll has
to be in a folder named platforms so
that the path from your executable to the dll is platforms/qwindows.dll
Whereas this wasn't enough in my case. I had also to add following line at the beginning of my main()
QCoreApplication::addLibraryPath("./");
Then everything worked.
解决qwindows.dll缺失错误
本文解决了程序运行中出现的qwindows.dll文件缺失问题。详细介绍了正确的dll文件放置位置及路径配置方法,并给出了一段在main()函数中添加的代码示例。
2571

被折叠的 条评论
为什么被折叠?



