hmm... Unfortunately I'm away from my development PC and am unable to try your suggestion. But just to make sure I understand everything correctly, you would append all the members of my class to a QDataStream which would then be a binary encoding and could directly be used as a BLOB? Something like this, where siStack is a BLOB:
query.prepare("INSERT INTO trainingSet (id, siStack) "
"VALUES (:id, :siStack)");
query.bindValue(":id", 1001);
query.bindValue(":siStack", myQDataStream);
query.exec();
QSqlQuery query;
query.prepare("INSERT INTO trainingSet (id, siStack) "
"VALUES (:id, :siStack)");
query.bindValue(":id", 1001);
query.bindValue(":siStack", myQDataStream);
query.exec();
To copy to clipboard, switch view to plain text mode
Bookmarks