Results 1 to 3 of 3

Thread: How to get the point's coordinate in the qwtplotcurve?

  1. #1
    Join Date
    Nov 2011
    Posts
    3
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default How to get the point's coordinate in the qwtplotcurve?

    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!

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to get the point's coordinate in the qwtplotcurve?

    Which point you want to get?
    Certain point on the screen?
    Mouse position on the curve?
    Y coordinate given some X?

  3. #3
    Join Date
    Nov 2011
    Posts
    3
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to get the point's coordinate in the qwtplotcurve?

    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);

Similar Threads

  1. Replies: 1
    Last Post: 26th November 2011, 04:56
  2. Replies: 3
    Last Post: 21st June 2011, 19:37
  3. Replies: 1
    Last Post: 9th December 2009, 17:14
  4. Replies: 1
    Last Post: 3rd December 2009, 14:23
  5. display a plot point by point
    By oswalidos in forum Newbie
    Replies: 32
    Last Post: 13th March 2009, 15:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.