QCustomPlot Discussion and Comments

Tracer using for QCPCurveReturn to overview

Hello, i want to use tracers for my QCPCurve plot. I've tried to cast plottable into QCPGraph to use setGraph func in QCPItemTracer class, but it doesn't work.

QList<QCustomPlot *> list_of_plots;
//
...
//
QCPGraph *graph = qobject_cast<QCPGraph *>(list_of_plots.at(0)->plottable(0));
// graph == nullptr always

Maybe you know what is wrong. Or advise me please a different approach to solve this issue.
Thank you a lot!

Didn't find any simple solution, so i had to change QCPItemTracer class inside QCustomPlot library.