Solved Set connection name for QSqlDatabase. How?
-
Hello all!
I've got this error: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.
Briefly - I am using for user data and for storing logs QSqlDatabase, and there are two separated DB one for user one for logbook. Is there any way to define connection name and use it in parallel without affecting each other ?
-
Solution found https://doc.qt.io/qt-5/qsqldatabase.html#addDatabase
Issue closed. -
Hi
Yes there is
https://forum.qt.io/topic/76810/use-two-or-more-sqlite-database-at-the-same-time/2see jsulm answer
-
@bogong
haha. same time :) -