Results 1 to 4 of 4

Thread: QwtSamplingThread usage

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default QwtSamplingThread usage

    Hello!

    I would like to know more about the clas QwtSamplingThread: how do I implement it and if there is an example of it being used. Unfortunately the Detailed Description in Qwt's help file don't say too much.


    Thanks,

    Momergil

  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: QwtSamplingThread usage

    There is not much to say, beside that it starts a thread calling sample() periodically. The oscilloscope example uses it.

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    Momergil (17th January 2013)

  4. #3
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QwtSamplingThread usage

    Quote Originally Posted by Uwe View Post
    There is not much to say, beside that it starts a thread calling sample() periodically. The oscilloscope example uses it.

    Uwe
    Ok, I'll give a look at the example; should be enough.

    Thanks,

    Momergil

  5. #4
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QwtSamplingThread usage

    Just a small note:

    I tried to implement a class with QwtSamplingThread and the periodic sample() wasn't working. I was almost coming here for help when I noticed that in the osciloscope example the run() function was not declared, just sample(), so I did the same and it began to work. So I'l recommend to add this note in the Qwt help files: not to implement run() in order for sample() to work!


    Thanks,

    Momergil

Similar Threads

  1. QwtSamplingThread
    By David812 in forum Qwt
    Replies: 1
    Last Post: 26th May 2011, 10:16
  2. QEffects.cpp usage.....
    By Naveen in forum Qt Programming
    Replies: 6
    Last Post: 11th January 2011, 11:07
  3. QML usage
    By icek in forum Qt Programming
    Replies: 0
    Last Post: 5th August 2010, 17:02
  4. CPU and Memory Usage
    By philwinder in forum Qt Programming
    Replies: 16
    Last Post: 17th May 2008, 22:25
  5. Qt4 XML usage
    By kandalf in forum Qt Programming
    Replies: 1
    Last Post: 21st November 2006, 20:18

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.