I need to show it when the mouse is being dragged above the Qwt plot, even without pressing any buttons. I know, that it's simple, but how?
I need to show it when the mouse is being dragged above the Qwt plot, even without pressing any buttons. I know, that it's simple, but how?
Last edited by YaK; 27th February 2009 at 06:38. Reason: reformatted to look better
picker->setTrackerMode(QwtPicker::AlwaysOn);
Carlton (28th March 2009)
Rounding algo should be set by using QwtPicker::trackerText function.
Showing value of f(x) - I think this should be your function - first it should calculate x value of picker, then it should iterate through your curve and find this exact x value, or interpolate y value if picker's x value lies between two points of your curve.
This value should be given to picker to show, or put some label, or write this value in statusBar, it's up to you.
Bookmarks