QCustomPlot Discussion and Comments

Real Time Data Demo QuestionReturn to overview

Hi friends,

I'm new to the QT development scene along with QCustomPlot. My goal is to implement a live plotting similar to what is found at this demo over here :

http://qcustomplot.com/index.php/demos/realtimedatademo

However, I had some questions. I have a function called void MyWindow::makePlot(){ }, which contained some of the demo plots (plot parabola) as a test of it working. However I'm a bit lost on how to implement the code found in the above link.

I pasted the contents of the setup function within the makePlot(). But I don't know where to put the other part of the code. There's also an error stating "dataTimer" was not declared in this scope. What is this referring to?

Thank you very much for the help!

create a timer:

QTimer *dataTimer = new QTimer(this);

above the timer statement. I also removed the ampersand.