How to change the name and the emplacement of the SQLite database ?
-
Hi,
is there a way to change the name and the emplacement of the SQLite database ?
As exemple my database name is : 33704e7720b9d2247ed1258cad464a99.sqlite and is placed in this folder under linux : /home/slimittn/.local/share/Qt Project/QtQmlViewer/QML/OfflineStorage/Databases/.
Thank you.
-
When opening the database connection you can give the database the path you want by passing the appropriate path to "QSqlDatabase::setDatabaseName.":http://doc-snapshot.qt-project.org/4.8/qsqldatabase.html#setDatabaseName