C ++ cursor tracking

I am currently working on a class that will create an x, y graph according to the given parameters when called, but I also want a description of each point in the x, y graph when the cursor is over it.

For example, if I create a graph showing the growth of the market (year, quantity, rate) and I’m above a certain point, I want the box to appear and it will contain detailed information about the year, stock, stock price , position in the graph, etc. I have already finished the graph generator, but now I need help with this part.

How to achieve this in C ++?

Note. I am using Ubuntu.

Another note --- I created my chart without graphic libraries and without any graphic functions. If you didn’t understand my question at first, I basically ask two things: 1. How to implement cursor tracking on my graphic graph with external graphics libraries and 2. if it is not possible, which library should I use to create the graph and how to use it to track the cursor ?

Sorry for the confusion, this is only the first time I use graphics. I'm more of a "no external libraries" programmer.

Thank.

+3
source share
3 answers

Qt, , Qwt Qt, , ( Qwt - qtcentre).

"txt-box on hover" , QWidget:: setToolTip (const QString & ) node.

+2

, " " , . , .

+1

, , , . , Java, ++, ++ , , . QT, . , .

-1

Source: https://habr.com/ru/post/1777221/


All Articles