When plotefd about 1000 lines, each with 32 points, and if try to clear them using QCustomPlot.clearGraphs(), it costs about 20 seconds or more.
QCustomPlot.clearGraphs() is called in the destructor ~QCustomPlot(), so it seems you cannt plot too many lines once efficiently with QCustomPlot.
Am I doing something wrong?