Ah, yep. So I need to make SIGNAL which triggers certain GUI-related (widget) SLOT?
And I am sorry, the variable names should have been clearer![]()
Ah, yep. So I need to make SIGNAL which triggers certain GUI-related (widget) SLOT?
And I am sorry, the variable names should have been clearer![]()
Last edited by jendral_hxr; 26th May 2011 at 04:10.
I mean who is owner of the graph, QwtPlot and QwtPlotCurve class objects?
The 'owner' the QwtPlot, QwtPlotCurve is a class I made myself.
After reading queuedcustomtype example, it's clear to me: I need to make a SIGNAL in a thread to pass some value to a SLOT of widget which has that 'updating' threadSo every self-updating widget has to have its own thread within?
Thanks, Santosh Reddy
ummh, it's just embarrassing that the title is QPlot instead of QwtPlot, duh!
Last edited by jendral_hxr; 27th May 2011 at 14:27.
For any type of "realtime" plot I strongly recommend to decouple the refresh rate of your plot widget from the sample rate.
Use a QTimer, that periodically checks if new samples have been collected and calls replot then.
Uwe
Bookmarks