Qt 图表和数据可视化小部件 [英] Qt Charts and Data Visualization widgets

查看:62
本文介绍了Qt 图表和数据可视化小部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了尝试 Qt Charts 和 Qt Data Visualization,我已经安装了 Qt 5.7,但是我在 Qt Designer 和 Qt Creator 中都找不到新的小部件.有什么建议我应该怎么做才能让设计器中出现新的小部件?

I have installed Qt 5.7 in order to try Qt Charts and Qt Data Visualization but I cannot find new widgets neither in Qt Designer nor in Qt Creator. Any suggestions what should I do so new widgets appear in designer?

推荐答案

我今天遇到了完全相同的问题.看起来 QT Charts 的 QT Designer 插件默认不是包的一部分.我最终从 github https://github.com/qtproject/qtcharts/tree/下载了设计器插件源5.7/插件/设计师这仅包含 5 个文件.

I was having exactly the same problem today. It looks like the QT Designer plugins of QT Charts are not part of the package by default. I ended up downloading the designer plugin sources from github https://github.com/qtproject/qtcharts/tree/5.7/plugins/designer This consists of just 5 files.

然后您应该能够在 Qt Creator 中打开 Designer.pro 项目并编译它.将生成的库放在您的设计器插件目录中.这将使 QChartsView 小部件出现在 Qt 设计器中.

You should then be able to open the designer.pro project in Qt Creator and compile it. Place the resulting library in your designer plugin directory. This will make the QChartsView widget appear in the Qt Designer.

这篇关于Qt 图表和数据可视化小部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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