It's much simpler than that.
f.open(...);
QList<QVector3D> points;
while(!f.atEnd()) {
QVector3D vec;
vec.setX(list.at(1).toInt());
vec.setY(list.at(2).toInt());
vec.setZ(list.at(3).toInt());
points << vec;
}
QFile f(...);
f.open(...);
QList<QVector3D> points;
while(!f.atEnd()) {
QString line = f.readLine();
QStringList list = line.split('|');
QVector3D vec;
vec.setX(list.at(1).toInt());
vec.setY(list.at(2).toInt());
vec.setZ(list.at(3).toInt());
points << vec;
}
To copy to clipboard, switch view to plain text mode
Of course you need to provide some error checking.
Bookmarks