What are the advantages/disadvantages of QCustomPlot, compared to Qwt?

后端 未结 4 1811
感情败类
感情败类 2020-12-08 11:44

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

4条回答
  •  眼角桃花
    2020-12-08 12:23

    Pros:

    • Easy to get started IMO (The API is intuitive and well documented)
    • Good plot quality and fast response when panning and zooming.
    • Single .h/.cpp file (i.e. no need to reference compiled libraries other than QTs)

    Cons:

    • GPL (not LGPL)
    • Internally uses a data structure that stores 6 doubles for each data point even when you only need X and Y
    • Internally it uses a QMap to store the data points and keep them sorted. Very efficient for panning and zooming but very slow to populate when the number of samples is large (e.g. 1,000,000 data points)

提交回复
热议问题