QCustomPlot Discussion and Comments

How to create a realtime plot system ?Return to overview

Hi,

I am trying to create a monitoring tool. i call a webservice service every 5 seconds to retrieve the last data.

how can i create a realtime plot that will refresh every 5 seconds and display latest data and keeping the history ?

Have a look at the real-time data demo. You'll want to change the interval of the update timer to something like 5000 (milliseconds) and remove the parts of the code that removes the data that scrolls out of the visible range. But it should give you a good idea of how to do it.