plugin cannot be loaded for module “QtQuick“ && Could not load the Qt platform plugin “windows“

亦余心之所善兮,虽九死其犹未悔。这篇文章主要讲述plugin cannot be loaded for module “QtQuick“ && Could not load the Qt platform plugin “windows“相关的知识,希望能为你提供帮助。


目录
??一 问题引入??
??二 问题解决??
??三 参考链接??
一 问题引入

【plugin cannot be loaded for module “QtQuick“ && Could not load the Qt platform plugin “windows“】

qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: direct2d, minimal, offscreen, webgl, windows


qrc:/main.qml:1:1: plugin cannot be loaded for module "QtQuick": Cannot load library C:\\Qt\\5.15.2\\msvc2019_64\\qml\\QtQuick.2\\qtquick2plugin.dll: ???????????????


二 问题解决环境变量使用:
%Qt5_DIR%
修改Qt5_DIR的值即可使用不同的编译器环境。


三 参考链接??(4条消息) Windows下错误could not find the Qt platform plugin “windows” in “C:\\Qt\\XXX”的解决办法_zmyzyc1988的博客-CSDN博客??





    推荐阅读