Hello,

I wrote an application that plots signal samples using Qwt. The application consists of a QMainWindow subclass that has some labels to present numeric values, a QTextEdit to present textual messages and a QwtPlot subclass to plot the signal samples. All three kinds of information are received through UDP sockets. The sockets are members of the QMainWindow subclass, so the received samples are passed to the QwtPlot subclass, which has a buffer a does the plotting. Before being represented, all the received data needs some kind of processing (besides being extracted from the corresponding socket).

With the current implementation, the application responsiveness is not as good as it should be. Could anyone give me some advice on what would be a good architecture for this kind of application (sockets+plotting)? Maybe a change in the class organization or some threads to help improve responsiveness?

What is the best approach to achieve bidirectional communication between the QMainWindow subclass and the QwtPlot subclass (samples have to be passed to the the QwtPlot subclass and the plot has to notify the mainwindows when it is out of samples)

Thanks for your advice.

Regards,
catto