PDA

View Full Version : how to know information about the sqlite database active connection



abdul_moiz
10th June 2011, 08:11
Hi,
I am new to QT sqlite programming.
Can anyone tell me how to know the active database connections if sqlite database is accessed through multiple connections.

ChrisW67
10th June 2011, 10:32
What exactly is your question?
If you create multiple connections to the same file with separate connection names then you know the active connections. Qt can give the names back to you through QSqlDatabase::connectionNames().

abdul_moiz
10th June 2011, 13:49
Thanks,
I got the answer