Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/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

    Hi,

    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