Hello, I need to write an application that accepts a stream of data and display it on a graph in real time. I want to be able to append the new data to be displayed with the data already displayed, and when the graph reaches the end of the screen it wraps around, sort of like a rolling graph. The question is, is there a way to paint only the new data, without repainting everything? I want this to be pretty fast. What kind of facility should I use? I mean, QPainter and paintEvent in the QWidgets seemed like the right thing to use, but paintevent seems to clear the window before it draws, and I really need to avoid drawing everything every time.
Thanks for the help.