与 Qwt 相比,QCustomPlot 的优点/缺点是什么? [英] What are the advantages/disadvantages of QCustomPlot, compared to Qwt?

查看:88
本文介绍了与 Qwt 相比,QCustomPlot 的优点/缺点是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在使用 Qwt 已经两年了.我喜欢它的面向对象的类,这使得调整图表和功能变得非常容易.这些天 QCustomPlot 变得越来越流行并与 Qwt 竞争.当然,我确实比较了 API.但是,我对来自两个图书馆的有经验的用户的证词很感兴趣.什么方便?什么不是?有什么坑吗?

I am using Qwt now for two years. I like its object oriented classes, which makes it very easy to adapt the plots and functionality. These days QCustomPlot is becoming more and more popular and competes with Qwt. Of course I did compare the APIs. However I am interested in the testimonies of experienced users from both libraries. What is convenient? What not? Are there any pitfalls?

推荐答案

我不会称自己为有经验的",因为我只使用了几个月的 Qwt,以及几周的 QCustomPlot.话虽如此,我的印象是:

I wouldn't call myself "experienced", as I used Qwt only for a few months, and QCustomPlot for a few weeks. That being said, my impressions are:

  • QCustomPlot 目前似乎得到了更积极的发展.最后一次发布是在 2012 年 8 月(而 Qwt 的最后一次发布可以追溯到 2011 年).主观上,它的界面似乎更符合 Qt 框架.
  • 另一方面,Qwt 似乎更成熟、更有特色.例如,当前版本的 QCustomPlot 没有直接的方法来设置轴矩形的颜色背景(仅支持将背景设置为用户提供的像素图).另一个例子 - Qwt 有特殊的类和方法来促进绘制和放大具有大量点的曲线.我在 QCustomPlot 中没有发现类似的东西.

QCustomPlot 的作者是 意识到 缺少设置情节背景的功能,并承诺在即将发布的版本中添加它.

Author of QCustomPlot is aware of missing functionality to set plot background and promises to add it in upcoming release.

QCustomPlot 和 Qwt 之间还有另一个重要区别——许可.- Qwt 是 LGPL,因此您可以将其链接到非 GPL 项目.QCustomPlot 是 GPL v.3,很多人(包括我自己)都觉得这太严格了.如果您需要 LGPL 许可,QCustomPlot 作者邀请与他联系.

There's also another important difference between QCustomPlot and Qwt - licensing. - Qwt is LGPL, so you can link it into non-GPL project. QCustomPlot is GPL v.3, which many people (myself included) find WAY too restrictive. QCustomPlot author invites to contact him if you want LGPL license.

EDIT2(2013 年 3 月 25 日):Qwt 分支 5.* 和 6.* 的新版本于 11 月发布,取消了 QCustomplot更积极开发"的优势

EDIT2 (25 March 2013): New releases of Qwt branches 5.* and 6.* appeared in November, which annuls "more actively developed" advantage of QCustomplot

这篇关于与 Qwt 相比,QCustomPlot 的优点/缺点是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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