Results 1 to 11 of 11

Thread: Qwt realtime plotting using QwtPlotDirectPainter

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt realtime plotting using QwtPlotDirectPainter

    Hi,

    I am a newbie to Qt/Qwt; but find it very useful; I am having similar question as Jean-Luc; I have been studying Qwt examples: Oscilloscope, Refreshtest, and Curvedemo2.

    Oscilloscope does a 'replot" so the plot is restarted at the beginning of the plot window, Refreshtest does a "scroll" to the data; I would like to do a "erase bar" to the wave; so very similar to Oscilloscope but does NOT clear the plot window; I can stop the refresh by not doing "replot" after the interval; but I can't seem to create the "simple" erase bar; ie. deleting the previous plot(eg. 5 points in the future) and replacing them with the new points(as currently done in the examples); I am thinking of doing the "brute force method" of using similar brush as background color; but thought, there maybe a better solution or even a simpler solution.

    Appreciate any suggestion to do this.

    Thanks.

    Lee

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

    Default Re: Qwt realtime plotting using QwtPlotDirectPainter

    In earlier Qt releases ( Qt 3 ) it was possible to erase something by drawing in XOR mode, but this feature is lost since Qt 4.0. So the answer is simple, you can't erase something from a widget ( by Qt design ).

    Uwe

Similar Threads

  1. QWT Realtime Plot zoom
    By Gavin Harper in forum Qwt
    Replies: 2
    Last Post: 13th September 2010, 08:04
  2. Replies: 1
    Last Post: 18th June 2010, 15:34
  3. Replies: 1
    Last Post: 16th March 2010, 09:29
  4. RealTime Images
    By shiranraviv in forum Qt Programming
    Replies: 8
    Last Post: 31st December 2009, 00:41
  5. how can i display curve in realtime?
    By blm in forum Qt Programming
    Replies: 1
    Last Post: 11th September 2008, 20:03

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
  •  
Qt is a trademark of The Qt Company.