VS+Qt5 运行报错: 找不到 Qt platform plugin windows

问题描述

关键词

This application failed to start because it could not find or load the Qt platform plugin "windows"
in "".

弹出信息

---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Debug Error!

Program: E:\OSLS\build\Debug\Qt5Cored.dll
Module: 5.7.0
File: kernel\qguiapplication.cpp
Line: 1111

This application failed to start because it could not find or load the Qt platform plugin "windows"
in "".

Reinstalling the application may fix this problem.

(Press Retry to debug the application)

---------------------------
中止(A)   重试(R)   忽略(I)   
---------------------------

原因

这是因为程序运行需要Qt本身的一些dll,把这些缺失的dll补上就可以了。

解决方法

把platforms这个文件夹拷贝到*.exe所在的运行目录下即可.


 

猜你喜欢

转载自blog.csdn.net/huapenguag/article/details/88395308