Qt 6.12 LTS is out! See what's new in the release
blog
How to change the name and the emplacement of the SQLite database ?
QML and Qt Quick
3
Posts
2
Posters
1.9k
Views
1
Watching
-
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
-
Thanks.
I need to do that with QML and not C++.