一 问题引入
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的值即可使用不同的编译器环境。