如何解决 mac 上的模块“"QtQuick.Controls" 版本 2.0 未安装”
How to solve module ""QtQuick.Controls" version 2.0 is not installed" on mac
我在 Qt Creator 5.6.13 上收到错误 "module "QtQuick.Controls“未安装版本 2.0”,所以我升级到 5.11.2,但我仍然收到它.
这是导致它的部分:
import QtQuick.Controls 2.0
感谢您的帮助。
确保您在 Projects > Build & 运行 中激活了您的 Qt 工具包,如下所示:
好的,我正在使用 Qt Creator 5.6.3 编译器进行构建。
Projects => Build & Run => change to the corresponding kit
.
使用此命令在 linux
上安装它
sudo apt install qml-module-qtquick-controls2
我在 Qt Creator 5.6.13 上收到错误 "module "QtQuick.Controls“未安装版本 2.0”,所以我升级到 5.11.2,但我仍然收到它.
这是导致它的部分:
import QtQuick.Controls 2.0
感谢您的帮助。
确保您在 Projects > Build & 运行 中激活了您的 Qt 工具包,如下所示:
好的,我正在使用 Qt Creator 5.6.3 编译器进行构建。
Projects => Build & Run => change to the corresponding kit
.
使用此命令在 linux
上安装它sudo apt install qml-module-qtquick-controls2