如何在Qt Creator 4.2.0(社区)中包括QtCharts库 [英] How to include the QtCharts library in Qt Creator 4.2.0 (Community)

查看:256
本文介绍了如何在Qt Creator 4.2.0(社区)中包括QtCharts库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试包含QtCharts,但是在包含库时出现错误,这是错误:

I tried to include the QtCharts but i have an error when i include the library, this is the error:


项目错误:QT:图表中的未知模块。

Project ERROR: Unknown module(s) in QT: charts.

我已经将QT + =图表包含在* .pro文件中,如下所示:

I have included the QT += charts in the *.pro file like this:

QT += charts
greaterThan(QT_MAJOR_VERSION, 4): QT += charts

SOURCES += \
    source.cpp

但它不起作用。请帮助我。

But it doesn't work. Please help me.

推荐答案

在安装过程中,您必须启用 Qt图表。默认情况下未启用此功能。

In the installation process you must enable Qt Charts. This is not enabled by default.:

点击在Qt图表上:

这篇关于如何在Qt Creator 4.2.0(社区)中包括QtCharts库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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