Could you show the code used for plotting the graph? I mean the contents of the loop which originally was:

Qt Code:
  1. while(!stream.atEnd())
  2. {
  3. //Each line is read
  4. //parsing is done
  5. //Graph is drawn
  6. }
To copy to clipboard, switch view to plain text mode 

Especiall that "graph is drawn" part