I've been looking for an hour and am about to tear my hair out and explode into a million bloody pieces. Given an QSqlQuery and a QSqlQueryModel, how the heck do I get the column names returned from the query?
I've been looking for an hour and am about to tear my hair out and explode into a million bloody pieces. Given an QSqlQuery and a QSqlQueryModel, how the heck do I get the column names returned from the query?
Finally found it.
const QVariant &v = model.record().field(columnIndex).type();
model.record().fieldName(columnIndex);
Bookmarks