gonzoboy!
4th December 2009, 01:53
Hi all,
I am storing large float arrays as BLOBs via QVariantList. I can store them fine (apparently), but how do I retrieve them?
QSqlQuery query;
QVariant v;
QVariantList vl;
bool r = true;
int s;
r = db.isOpen();
r = query.prepare("SELECT ticktimes FROM ticks");
r = query.exec();
r = query.first();
v = query.value(0);
r = v.isValid();
//cout << v.toInt(&r) << endl; // works OK for single int type
vl = v.toList();
doesn't do it.
TIA
I am storing large float arrays as BLOBs via QVariantList. I can store them fine (apparently), but how do I retrieve them?
QSqlQuery query;
QVariant v;
QVariantList vl;
bool r = true;
int s;
r = db.isOpen();
r = query.prepare("SELECT ticktimes FROM ticks");
r = query.exec();
r = query.first();
v = query.value(0);
r = v.isValid();
//cout << v.toInt(&r) << endl; // works OK for single int type
vl = v.toList();
doesn't do it.
TIA