I am using the real-time graph example here http://www.qcustomplot.com/index.php/demos/realtimedatademo
I have two separate makeplot functions
I have two Qtimers that call a realtimedataslot and a realtimedataslot2 functions
I have set these up to be identical functions to have two QCustomPlot widgets plot the same values in real time.
The program compiles with no errors, however when running it will immediately crash. The error it gives me is this:
QCPGraph* QCustomPlot::graph(int) const index out of bounds: 0
what might be causing this error. I have made seperate Qtimers however it will only work with one real time graph