Ohh, from your first question I thought you had a problem with counting.

For the parsing, use a QTextstream but do not read the entire line into a string.
Try something like

Qt Code:
  1. QString string;
  2. int integer1;
  3. ...
  4.  
  5. stream >> string >> integer1 >> ...;
To copy to clipboard, switch view to plain text mode