QSqlDatabase common problem
why do i get this error : QSqlDatabasePrivate::addDatabase: duplicate connection name ‘qt_sql_default_connection’, old connection removed.
i already follow what’s in the docs…
- window::window()
- {
- {
- // query here
- query.clear();
- db.close();
- }
- }
7 replies
http://doc.trolltech.com/4.2/qsqldatabase.html#addDatabase
can you check with this if DB is still open?
bool db.isOpen()
QDatabase::removeDatabase(“databaseName”);
i just found this thread [developer.qt.nokia.com]
You must log in to post a reply. Not a member yet? Register here!



