Important: Please read the Qt Code of Conduct -

How to Implement Hover on QAreaSeries?

  • I want to Display Text whenever my cursor moves over the area represented on my graph.
    How can I do that using " void QAreaSeries::hovered(const QPointF &point, bool state) "

  • Lifetime Qt Champion


    Prepare the text in that function and store the point, then call update.
    You will also have to re-implement the paintEvent method. Start by calling the base class implementation and then draw your text on top.

Log in to reply