Hi every one.

I would appreciate it if some one can point me in the right direction. The problem i am having is, I have a line that i read from a file with doubles and ints in the line example

1 2 3 4.5 6.7 2.3
I want to put these numbers in ints and doubles. What i tried to do was.

Qt Code:
  1. int one, two, three;
  2. double oned, twod threed;
  3. QTextStream ssFile, line;
  4. ssFile.setDevice(&file);
  5. QString stringFile = ssFile.readLine();
  6. line.setString(&stringFile);
  7. line >> one >> two >> three >> oned >> twod >>threed;
To copy to clipboard, switch view to plain text mode 
Needles to say it did not work. is there an easy way in doing this.
Thanks in advance

Chris