hi ChrisW67,
thanks for your answer. Supposingly this problem was simple in C++, but now I have spent around 12 hours of searching and still haven't got it!
Hence:
Part A:I should read in the data from file
Should i do read it line by line or store it directly to variable. Back in C++ I used to do:
ifstream in(FileName_Read);
while(getline(in,line,'\n')) {
// Declarations.
stringstream ss;
ss << line;
string entry;
while (getline(ss,entry,delimiter)) {
// Declarations.
stringstream entry_ss;
float entry_float;
char entry_char;
// Insert data entry into stringstream.
entry_ss << entry;
// Convert data entry to float.
entry_ss >> entry_float;
ifstream in(FileName_Read);
while(getline(in,line,'\n')) {
// Declarations.
stringstream ss;
ss << line;
string entry;
while (getline(ss,entry,delimiter)) {
// Declarations.
stringstream entry_ss;
float entry_float;
char entry_char;
// Insert data entry into stringstream.
entry_ss << entry;
// Convert data entry to float.
entry_ss >> entry_float;
To copy to clipboard, switch view to plain text mode
I suppose in Qt there are lots of overloaded functions and classes that let you do this in 3-4 lines, but I haven't found them yet 
Part B: Store the data to a local variable
So far in Qt I was using C++ double pointers,I hadn't discovered QVector. I will check it out now.
PS:isn't it strange that when you google Qt problems you are almost never sent to qtcentre forums?? Actually, you have to use qtcentre search machine to find what you need and that takes a lot of time.
Bookmarks