I'm wondering does QtSql + Sqlite support QSqlQuery::size() function?
No, it doesn't. However, you can use last() and at() together to get the result.
QSqlQuery q;
q.exec("select * from table");
q.last();
qDebug() << q.at() + 1;
No, it does't. SQLite is one of the databases for which the size of the query is not directly available. BTW: A Google-query for "qt sqlite QSqlQuery size" had this StackOverflow question as first answer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With