Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
None
-
4.7.0, 4.7.1
-
None
-
All
Description
QML databases are created in QDeclarativeEngine::offlineStoragePath.
For example in Windows XP: C:\Documents and Settings\frankli\Local Settings\Application Data\QML\OfflineStorage\Databases\725bd1b00b39a2977fa503c291205369.sqlite
I cannot find a way to access this DB in Qt (since the db name changes based on when it was created). There needs to be some way to either:
A) allow QML to create a fixed named sqlite, OR
B) allow Qt to query the current full path to the db (to be used in QSqlDatabase::setDatabaseName)
It is very common to need access to the same db in both Qt and QML, especially since QML code is wrapped in Qt code anyways.