2

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?

user7431005
  • 3,899
  • 4
  • 22
  • 49

2 Answers2

0

hovered might be what you want.

QXYSeries provide hovered signal, both QScatterSeries and QLineSeries are inheritance from QXYSeries.

someone
  • 122
  • 2
  • 9
0

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);
eyllanesc
  • 235,170
  • 19
  • 170
  • 241
jpr
  • 1
  • 1