Implementing a vertical hairline cursor
Hi,
I have implemented a real-time plot in Qwt. Now I need to implement a vertical hairline cursor in my plot. When I click mouse on the plot, it should draw a vertical hairline at the point. I should be able to display the timestamp and the curve value at the corresponding point.
I guess it can be implemented using some sort of picker and marker, but I could not find an appropriate one or any examples using such things.
Can somebody advise? Thanks in advance.
Baas
Re: Implementing a vertical hairline cursor
What about the code you find in playground/curvetracker ?
Uwe
Re: Implementing a vertical hairline cursor
Thank you, Uwe. That works beautifully. I have got it working by using the same class CurveTracker.
I hadn't noticed the folder named playground containing more examples. I was looking at the folder named 'examples' only.
Thanks again.
Baas