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.youkuaiyun.com/sidely/article/details/40347881
解决Qt5 QML模块未安装错误
本文解决了一个关于Windows环境下Qt5.12.0版本中出现的QML模块未安装的问题,通过设置环境变量QML2_IMPORT_PATH指向Qt安装目录下的qml文件夹来消除错误。
1912

被折叠的 条评论
为什么被折叠?



