PDA

View Full Version : QWT oscilloscope example



Pablo220372
9th June 2011, 16:22
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.

Uwe
9th June 2011, 17:32
There is a replot missing, when the plot gets a QEvent::Show. Add something like this:


void Plot::showEvent( QShowEvent * )
{
replot();
}
Uwe

Pablo220372
10th June 2011, 08:19
Dude, it works!!!!!!!!! thx a lot for your help. I really appreciate it, honestly.
Have a nice day,

Cheers,