Eventually, this is the way I did it
const char *text;
textline = strong.toAscii();
text = textline.constData();
res = sscanf(text, "%lf %lf %lf", &x, &y, &z);
QByteArray textline;
const char *text;
textline = strong.toAscii();
text = textline.constData();
res = sscanf(text, "%lf %lf %lf", &x, &y, &z);
To copy to clipboard, switch view to plain text mode
I'm just surprised it requires 3 to 5 lines in Qt instead of 1 in MFC for something which should be a very common operation.
Thanks for the hint anyway. I wasn't aware of the method toFloat(). No use here, though, there are three double values to read.
Cheers
Bookmarks