This application failed to start because it cloud not find or load the Qt platform plugin “windows”

in “”.

Reinstalling the application may fix this problem.

## WHY THE PROBLEM OCCURRED

Honestly, I don’t know. But it very much seems like “Alexander Saprykin” answer is correct. During the process of testing, i had to update my Qt so it could fairly well be only a version mismatch.

Also, the fact that when I redid my build using only Qt 5.7.0 it worked, implies that it was indeed only a mismatch case.

## HOW I FIXED IT

As told by “Sebastian Lange” in the comments, using `windeplyqt.exe` did the job. I just deleted everything but the `.exe` in my build folder, opened Qt5.7 command line, chaged directory to the same as my `.exe` and ran the command `windeployqt .` or `windeployqt [name_of_exe].exe`

Windows部署工具

Windows部署工具旨在自动化创建可部署文件夹的过程，该文件夹包含从该文件夹运行应用程序所需的Qt相关依赖项（库，QML导入，插件和转换）。它为Windows运行系统或Windows桌面应用程序的安装树创建一个沙盒，可以轻松地捆绑到安装包中。

windeployqt.exe    [name_of_exe].exe

【Qt】关于环境问题 – 没有Windows的组件？
Tagged on:
0 0 vote
Article Rating

0 评论
Inline Feedbacks