本人在使用sqlite查询数据时候,打开第一个表不报错,当我打开第二个表时候提示:
QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work.
QSqlDatabasePrivate::addDatabase: duplicate connection name 'qt_sql_default_connection', old connection removed.
网上资料说,是打开sqlite以后没有关闭连接,当我使用removedatabase("******"),还是报相同的错,不知何解?望高手指点。