Results 1 to 3 of 3

Thread: Deleting points from a curve dynamically

  1. #1
    Join Date
    Feb 2010
    Posts
    2
    Qt products
    Qt3
    Platforms
    Unix/X11

    Question Deleting points from a curve dynamically

    hi,
    i'm relatively new to programming using qwt. I'm working on a graphical tool that calculates the goodness of fit , as in curve fitting problems.
    I am using qwtplotcurve for plotting the points and it is working fine. but i need to implement a functionality that enables the user to select and delete the displayed point(s). Whichever he/she wishes to delete. once that is done , i need to replot and proceed with the algorithm.. Could someone please advice me or post a sample code for the same. thanking you in anticipation !

    I need to delete certain points from the screen .. and then replot the remaining points !!

  2. #2
    Join Date
    Apr 2008
    Posts
    32
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Deleting points from a curve dynamically

    What about using picker click machine? Find nearest point of curve to your cursor position, get index of curve's point. Make workaround on curve's Data, set new data to curve and then replot.

  3. #3
    Join Date
    Feb 2010
    Posts
    2
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Deleting points from a curve dynamically

    hey thanks for the reply !! I I tried to use the qwtplotpicker's selected signal for it .. if there is a better way please tell me !! thanks

Similar Threads

  1. Replies: 1
    Last Post: 22nd January 2010, 15:34
  2. Basic Points of QT
    By BalaQT in forum Newbie
    Replies: 1
    Last Post: 14th August 2009, 07:39
  3. Replies: 2
    Last Post: 24th April 2009, 18:22
  4. Get the points of a fitted curve
    By giusepped in forum Qwt
    Replies: 4
    Last Post: 25th December 2008, 08:42
  5. Replies: 5
    Last Post: 10th October 2008, 07:44

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.