Results 1 to 3 of 3

Thread: QWT oscilloscope example

  1. #1
    Join Date
    Jun 2011
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QWT oscilloscope example

    Hello everybody,

    I have a problem which I cannot find a solution for. I downloaded the latest version of QWT and I run the oscilloscope example on Ubuntu. If I minimize the Widget and maximize it again, the points are shown not from the beginning of the Plot, but from the point in which the last value (from the thread) was produced, just after maximizing. On screen are shown only the points after the maximize event. Do you have any idea how to show all of them again? (If you tried this example already, of course)

    Thanks a lot in advance.

  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 oscilloscope example

    There is a replot missing, when the plot gets a QEvent::Show. Add something like this:

    Qt Code:
    1. void Plot::showEvent( QShowEvent * )
    2. {
    3. replot();
    4. }
    To copy to clipboard, switch view to plain text mode 
    Uwe

  3. #3
    Join Date
    Jun 2011
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QWT oscilloscope example

    Dude, it works!!!!!!!!! thx a lot for your help. I really appreciate it, honestly.
    Have a nice day,

    Cheers,

Similar Threads

  1. Replies: 1
    Last Post: 18th June 2010, 12:21
  2. oscilloscope example bug
    By umituzun84 in forum Qwt
    Replies: 1
    Last Post: 17th March 2010, 20:03
  3. Qwt-5.3.0-svn: oscilloscope
    By PaceyIV in forum Qwt
    Replies: 2
    Last Post: 14th June 2009, 19:56
  4. use qt for oscilloscope
    By dycjiaoda in forum Qt Programming
    Replies: 1
    Last Post: 9th June 2009, 20:46

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.