Reputation: 4547
I have a chartView with a few different QScatterSeries and QLineSeries.
I would like to implement an event that is thrown if one moves with the mouse over one of the scatter points to display some additional information about this point.
I'm not sure where I should start to implement this. Should this event be part of my QChartView, my QChart or is it possible to stick it to my QScatterSeries?
Upvotes: 2
Views: 2049
Reputation: 1
You can use an event inherited from QXYSeries
, hovered. It is an event for series no for QChart or QChartView like:
connect(my_serie, &QLineSeries::hovered, this, &ChartView::myFunction);
Upvotes: 0