A new question about database????
-
wrote on 20 Mar 2012, 07:28 last edited by
my programme writes" QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");"
QSqlQuery query;
query.exec(.....);now the mistake is:" ...QSqlQuery::exec: database not open" can you solve this question ? thanks
-
wrote on 20 Mar 2012, 07:37 last edited by
You should call @ db.open() @ before executing queries.
-
wrote on 20 Mar 2012, 08:06 last edited by
And you should select an actual database at that. Not just a driver.
3/3