1

I want to draw a simple line chart in my QWidget application. I found this link, but when I add `

#QT += charts

to my .pro file, an error appear that :

Unknown module(s) in QT: charts

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
mjyazdani
  • 2,110
  • 6
  • 33
  • 64

2 Answers2

4

You may use QCustomPlot. It's free (GPL), simple (just 2 files), fast and well-documented.

Dmitry Sazonov
  • 8,801
  • 1
  • 35
  • 61
  • 1
    GPL can be a limiting factor for some applications. Alternatively Qwt is available under LGPL, which allows closed-source dynamic linking. – Archie May 03 '16 at 11:59
0

You may use Qt Charts (it is free, qt blog), but you need cloning git repository and building the project manually. Git repository you can find here.