Results 1 to 2 of 2

Thread: What's the best way to display the points' coordinate in a QwtPlot

  1. #1
    Join Date
    Nov 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question What's the best way to display the points' coordinate in a QwtPlot

    I'm new to Qwt, I'm drawing some lines in a QwtPlot, by saving the points' coordinate in two QVector vectX and vectY, and then invoke function->setData( vectX, vectY ), function is an instance of a QwtPlotCurve which has been attach to a QwtPlot.

    My problem is: how to display the points' coordinates in the QwtPlot? and how to draw text in a QwtPlot giving the text's coordinate?

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: What's the best way to display the points' coordinate in a QwtPlot

    Use QwtPlotMarkers or derive from QwtPlotCurve and reimplement one of the draw Methods.

    Uwe

Similar Threads

  1. Coordinate confusion
    By onurozcelik in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2010, 09:42
  2. Replies: 6
    Last Post: 14th May 2009, 12:02
  3. Replies: 4
    Last Post: 14th May 2009, 10:31
  4. coordinate problem
    By sai in forum Qt Programming
    Replies: 1
    Last Post: 17th April 2009, 10:21
  5. Replies: 22
    Last Post: 7th December 2007, 09:01

Tags for this Thread

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.