Results 1 to 2 of 2

Thread: How to replot efficientlyafter deleting a point

  1. #1
    Join Date
    Apr 2016
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default How to replot efficientlyafter deleting a point

    Hi there,

    I checked the realtime example, It do some partial update when adding a new point. But how should I when deleting a point? Need to call replot always?

    Thanks.

    Yanan

  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: How to replot efficientlyafter deleting a point

    Quote Originally Posted by abutter View Post
    But how should I when deleting a point? Need to call replot always?
    There is no erasing available, when drawing to a widget - all you can do is to redraw. But of course you are free to come up with something faster than doing a replot - if possible. F.e you could store the previous content in a pixmap.

    But what can be done is very plot specific and there is no out of the box implementation provided by Qwt.

Similar Threads

  1. Replies: 5
    Last Post: 28th January 2016, 07:04
  2. Replies: 1
    Last Post: 14th May 2014, 07:57
  3. Replies: 1
    Last Post: 3rd December 2009, 14:23
  4. display a plot point by point
    By oswalidos in forum Newbie
    Replies: 32
    Last Post: 13th March 2009, 15:37
  5. how to paint scene point by point
    By elessaar in forum Qt Programming
    Replies: 8
    Last Post: 4th September 2008, 20:00

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.