[Interest] QSqlDatabase

Till Oliver Knoll till.oliver.knoll at gmail.com
Wed Feb 4 15:01:50 CET 2015





> ...
>    QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
> ...
>    bool ok = db.open();
> 
> When I run this ok is always true, no matter what arguments are passed.

I am not experienced with SQLITE, but is it possible that each time a new DB instance (file) is created, if no such instance exists yet? Hence the "connection" alway succeeds?

Cheers,
  Oliver


More information about the Interest mailing list