PDA

View Full Version : QwtSamplingThread usage



Momergil
16th January 2013, 13:43
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

Uwe
17th January 2013, 06:49
There is not much to say, beside that it starts a thread calling sample() periodically. The oscilloscope example uses it.

Uwe

Momergil
17th January 2013, 13:25
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

Momergil
18th January 2013, 00:09
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