You can use >> to read floats from a std::istream or a QTextStream.
Another possibility is to split the string (tokenize it) and the convert the tokens with strtof or QString::toFloat().
Not sure if that is so much better that you should convert working code.
HTH




Reply With Quote
Bookmarks