Search code examples
qtqtcharts

draw chart in Qwidget


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


Solution

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