user7431005
user7431005

Reputation: 4547

Qt Chart mouse over event

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

Answers (2)

jpr
jpr

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

someone
someone

Reputation: 132

hovered might be what you want.

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

Upvotes: 0

Related Questions