Results 1 to 2 of 2

Thread: How to put last value on plot?

  1. #1
    Join Date
    Jul 2010
    Posts
    23
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to put last value on plot?

    I have a real time plot that updates periodically (ie sin(x)). I want to have the ability to show the last x & y value at the end of the plot. This value will update periodically as the plot updates.

    For example,
    if my plot is a straight line ------------------------------------
    (100, 0)

    The (100, 0) is the last value I want to show.
    When the next update comes ------------------------------------
    (101, 0)

    I would see (101, 0)

    How can I do that? Thanks.
    Last edited by ken123; 20th October 2011 at 20:26. Reason: clarify my question
    HYIP Daily Blog - A must read for all HYIP investors. All HYIP news on the net.

  2. #2
    Join Date
    Jul 2010
    Posts
    23
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to put last value on plot?

    QwtPlotMarker did the trick for me now. Thanks.
    Last edited by ken123; 20th October 2011 at 22:45. Reason: clarification
    HYIP Daily Blog - A must read for all HYIP investors. All HYIP news on the net.

Similar Threads

  1. QGLWidget don't draw in its place in the layout
    By entee in forum Qt Programming
    Replies: 1
    Last Post: 15th October 2011, 20:01
  2. QGridLayout place new widgets at top
    By rouge in forum Newbie
    Replies: 7
    Last Post: 6th October 2011, 09:06
  3. Replies: 3
    Last Post: 21st April 2009, 06:25
  4. How to place contextmenu in QGraphicsScene?
    By Morea in forum Qt Programming
    Replies: 2
    Last Post: 14th January 2007, 17:04

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.