QCustomPlot Discussion and Comments

RealTime plotting, in multithread appReturn to overview

Application build some graphs in real time. But method graph()->data()->add(key, val) calls from another thread (using pointer to plot).
Using mutex i can block graphs state (IDLE, DATA_LOADING, UPDATE ...) it works fine if we use plot->replot() method (update time range, channels count, axis ranges) in "manual" mode.
Plot calls replot() method on resize events in "automatic" mode.
So, is it possible calls replot in manual mode for resize events?

Or example for realtime plot, with multithread data loading?

Qt always suggests that when dealing w/ threads, you should use signals and slots. If you dont supply the connection type, it will automatically queue anything between threads and the receiving thread will be the one who runs the code.

You would then send out a signal and then the gui thread will be the one calling add data.