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

查看:2152
本文介绍了与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框架.
  • 另一方面,Qli似乎更成熟且更具特色.例如,当前版本的QCustomPlot没有简单的方法来设置轴矩形的颜色背景(仅支持将背景设置为用户提供的像素图).另一个示例-Qwt具有特殊的类和方法,可以方便地绘制和放大具有大量点的曲线.我在QCustomPlot中找不到类似的东西.
  • QCustomPlot seems to be more actively developed at present. Last release was in August 2012 (whereas last release of Qwt dates back to 2011). Subjectively, its interface seems more 'aligned' with Qt framework.
  • Qwt, on the other hand, seems more mature and featureful. For instance, current release of QCustomPlot has no straightforward way to set the colour background for the axis rectangle (only setting background to a user-supplied pixmap is supported). Another example - Qwt has special classes and methods to facilitate plotting and zooming in-out the curves with a very large number of points. I found nothing like that in 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,许多人(包括我自己)都认为WAY过于严格.如果您想要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天全站免登陆