title: Run failed when programming in NetBeans with Qt
body: <p>I'm programming in NetBeans with the Qt Framework, using MinGW as toolchain. Most of the programs that I've written compile and run without any errors. But today I've tried writing a program that uses the QChart library and some other related libraries. Those libraries are a part of the Enterprise add-ons, so I had to specify those libraries to the linker. Now, my Code builds just fine but when I try to run it I get the error message: RUN FAILED (exit value 1, total time: 216ms)
  I did a lot of Research, but found nothing that could be of use to me. 
  Here is my Code:</p>
  
  <pre><code>#include "QtWidgets/QApplication"
  #include "QtWidgets/QMainWindow"
  #include "QtCharts/QChart"
  #include "QtCharts/QChartView"
  #include "QtCharts/QLineSeries"
  QT_CHARTS_USE_NAMESPACE
  int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
  
      QLineSeries *series = new QLineSeries();
  
      series-&gt;append(0, 6);
      series-&gt;append(2, 4);
      series-&gt;append(3, 8);
      series-&gt;append(7, 4);
      series-&gt;append(10, 5);
  
  
      QChart *chart = new QChart();
      //chart-&gt;legend()-&gt;hide();
      chart-&gt;addSeries(series);
      //chart-&gt;createDefaultAxes();
      chart-&gt;setTitle("Simple line chart example");
  
      QChartView *chartView = new QChartView(chart);
      //chartView-&gt;setRenderHint(QPainter::Antialiasing);
  
      QMainWindow window;
      window.setCentralWidget(chartView);
      window.resize(400, 300);
      window.show();
  
      return a.exec();
  }
  </code></pre>
  
  <p>What could be the Problem?</p>