错误模块“QtQuick"未安装 2.12 版 [英] Error module "QtQuick" version 2.12 is not installed

查看:32
本文介绍了错误模块“QtQuick"未安装 2.12 版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 Qt 4.5.0 社区,我正在尝试使用 Qt5.10.0 MinGW 32 位构建我的项目.在 qtquick 项目的 qml 文件中导入 QtQuick 2.12,我遇到以下错误:

I have installed Qt 4.5.0 community and I am trying to build my project with Qt5.10.0 MinGW 32 bit. Having QtQuick 2.12 imported in my qml file in a qtquick project, I face with the following error:

未安装模块QtQuick"2.12 版

module "QtQuick" version 2.12 is not installed

值得一提的是,当我尝试编写 QtQu 的第一个字符时,建议使用此模块...

It is worth mentioning that this module is among the suggested ones when I try to write the first characters of QtQu...

如果有人能帮助我如何克服这个问题,我们将不胜感激

Would be appreciated if one could help me how to overcome this problem

推荐答案

根据文档:

╭------┬---------┬----------------------------┬-------------------╮
|      |         | QtQuick.Controls,          |                   |
|      |         | QtQuick.Controls.Material, |                   |
|  Qt  | QtQuick | QtQuick.Controls.Universal,| Qt.labs.calendar, |
|      |         | QtQuick.Templates          | Qt.labs.platform  |
|      |         |                            |                   |
├------┼---------┼----------------------------┼-------------------┤
| 5.7  |   2.7   |          2.0               |        1.0        |
| 5.8  |   2.8   |          2.1               |        1.0        |     
| 5.9  |   2.9   |          2.2               |        1.0        |
| 5.10 |   2.10  |          2.3               |        1.0        |
| 5.11 |   2.11  |          2.4               |        1.0        |
| 5.12 |   2.12  |          2.12              |        1.0        |
╰------┴---------┴----------------------------┴-------------------╯

因此,在您的情况下,您应该使用 QtQuick 2.10 或更早版本.

So in your case you should use QtQuick 2.10 or earlier.

这篇关于错误模块“QtQuick"未安装 2.12 版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆