How can I get the number of columns in QSqlQuery.
use the ->size() get a number of rows. what about columns ??
How can I get the number of columns in QSqlQuery.
use the ->size() get a number of rows. what about columns ??
Ok I get it:
QSqlQuery q("select * from employees");
QSqlRecord rec = q.record();
qDebug() << "Number of columns: " << rec.count();
Bookmarks