开发者

Problem in remove sqlite connection in QT

I've got following error when i want to remove my QSqlDatabase that connected to the Sqltie:

QSqlDatabasePrivate::removeDatabase: 开发者_如何学编程connection 'cnnDFP' is still in use, all queries will cease to work.

*cnnDFP is my connection name

How can i fix this? please help me


You're not showing you're code, so it is difficult to guess what is wrong. Anyway, have you read the documentation: http://doc.qt.io/qt-5/qsqldatabase.html#removeDatabase? Did you close all the queries before trying to remove the connection?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜