Results 1 to 2 of 2

Thread: Cyclical realtime QWT plotting

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2013
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Cyclical realtime QWT plotting

    Hi!

    I've got an application that receives data from serial port and plots it. Graph plots cyclically, i.e. when curve reach right border of graph, it continues from the beginning. Plotting code is based on realtime and oscilloscope examples, I use direct painting. The problem is how to erase old data, I need to do it partly (not like in oscilloscope example where whole screen cleans).

    Should I just draw line with backgroung color pen or there are any better solution? I've tried to search similar problems on this forum but couldn't find answer.

    Thanks in advance.

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

    Default Re: Cyclical realtime QWT plotting

    Since Qt4 ( in Qt3 there was the XOR mode ) erasing parts from a widget is not possible - you always have to repaint.

    Uwe

Similar Threads

  1. how to make updateGL() realtime in QT
    By saman_artorious in forum Qt Programming
    Replies: 15
    Last Post: 19th June 2013, 14:19
  2. Qwt Realtime plotting
    By krsree in forum Qwt
    Replies: 1
    Last Post: 5th April 2013, 05:20
  3. Replies: 3
    Last Post: 15th March 2013, 10:45
  4. Replies: 10
    Last Post: 1st April 2012, 08:55
  5. RealTime Images
    By shiranraviv in forum Qt Programming
    Replies: 8
    Last Post: 31st December 2009, 00:41

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.