View Full Version : How to get the point's coordinate in the qwtplotcurve?
changanminglike
23rd November 2011, 05:21
first I create a qwtplotcurve using some points,after that I want to get the point coordinate in the qwtplotcurve.any help will be appreciate.thanks!
Spitfire
23rd November 2011, 09:36
Which point you want to get?
Certain point on the screen?
Mouse position on the curve?
Y coordinate given some X?
changanminglike
24th November 2011, 00:51
Thanks,I want to get the Point's x coordinate and Y coordinate.and I get the result just now.the code are as follow:
double x=(qwtPlotCurve->data()).x(pointId);
double y=(qwtPlotCurve->data()).y(pointId);
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.