vendredi 4 décembre 2015

Local Storage QML, Get Sqlite Database Location

First of all sorry about the pretty basic question (i assume!)

I'm planning to use QtQuick.LocalStorage to create, read and write data to a local DB.

Now i want to know :

  • Where does the Sqlite DB reside once its created using using LocalStorage.openDatabaseSync()? (Documentation says we can utilise QQmlEngine::offlineStoragePath() function to get the location but I'm not sure how to run that function in QML :@)

  • Can i specify the path for the DB to be created?/How?

Thank you in advance.

Aucun commentaire:

Enregistrer un commentaire