title: Using QChart in visual studio
body: <p>I am trying to use the Qt QChart to plot a line graph. I am using visual Studio 2013 with Qt 5.8. I created a simple QApplication. When I paste  QLineSeries *series it says QLineSeries is undefined. How can I fix this?</p>
  
  <pre><code>#include "QtGuiApplication2.h"
  #include &lt;QtWidgets/QApplication&gt;
  #include &lt;QtCharts/QChartView&gt;
  #include &lt;QtCharts/QLineSeries&gt;
  
  int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
      QtGuiApplication2 w;
  
      QLineSeries *series = new QLineSeries();
  
      w.show();
      return a.exec();
  }
  </code></pre>