So you have numbers right justified in fixed width columns and you want to work out the widths of the columns, which includes the leading spaces.
@
QString line(" 178542 5 5 5 0 1447 33386 1452 1452 44585 44631 1452 44576");
QList<int> widths;
QRegExp re("\s+\S+");
int pos = 0;
while ((pos = re.indexIn(line, pos)) != -1) {
widths << re.matchedLength();
pos += re.matchedLength();
}
qDebug() << widths;
// (12, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8)
@
Of course, it won't work if some of the columns are "empty" or if the column can contain spaces.