Hi,
I create a program which one connect to a SQLite database, and the program is working. I can read data from database. But the problum is that, when I exit from the program an error message is print on the consol. The error is like this, " QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work. ". How can I solve this problem.

I create the connection using the following command
QSqlDatabase db;
db = QSqlDatabase::addDatabase("QSQLITE");
db.setDatabaseName("ManagerDB.db");


please help me.....