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!