Hi
Well you can either fix your error with QtCharts. seems like there are more than one application object so check code for that.
If you want something easy to get going, you can try
https://www.qcustomplot.com/
its just two files you just add to the project and off you go.
But its not GPU accelerated.