QCustomPlot Discussion and Comments

get selected graph pointerReturn to overview

Hi everyone,

I have a rect area that has for example 3 graphs. All of these grapsh are defined in the same rect area. When i was select a point on one of the 3 graph, i want to understand on which graph the selected point is. I activated mouse click event, when signal emitted i want to get the selected graphs pointer. Is there a solution

thanks for advices,

connect(p_qcustom_plot, &QCustomPlot::plottableClick, this, [this](QCPAbstractPlottable* p_plottable, int data_index){auto p_graph = reinterpret_cast<QCPGraph*>(p_plottable);});

the p_graph is the selected graph