Hi, the docs for QSqlDatabase::addDatabase() say:
So try passing a connection name as second parameter to QSqlDatabase::addDatabase().Warning: If you add a connection with the same name as an existing connection, the new connection replaces the old one. If you call this function more than once without specifying connectionName, the default connection will be the one replaced.
Ginsengelf




Reply With Quote

Bookmarks