windows上,安装的Qt5.12.0版本,使用的是vs2015 x64,之前都没报错的,今天突然报错
module "QtQuick" is not installed
module "QtQuick.Controls" is not installed
module "QtQuick" is not installed
module "QtQuick.Controls" is not installed
添加了个环境变量:
QML2_IMPORT_PATH路径设置为G:\Qt\Qt5.12.0\5.12.0\msvc2015_64\qml(你的安装路径的qml目录)
添加环境变量后,不用重启系统,重启Qt Creator,重新打开工程就没错误了。
参考:https://blog.csdn.net/sidely/article/details/40347881