Good afternoon.
How do I do a SELECT to an SQLite database?
I have the following:
Qt Code:
db.setDatabaseName("bd_agt"); if(db.open()){ qDebug() << "Opening database, status: " << db.open(); } while (query.next()) { ui->label->setText(nome); } qDebug() << query.size();To copy to clipboard, switch view to plain text mode
But in query.size () always returns -1, but I have values ​​in the database
How can I fix this?
Regards,
Daniel Sousa
Bookmarks