Solved QML local storage directory SQLITE
-
Hello, I would like change the local storage directory from my database but reading docs I don't really understand what I have to do with QQmlEngine::offlineStoragePath()...
Could you help me?
-
Hi,
Call
setOfflineStoragePath
-
thanks a lot, where I have to put this function?
what I have to write exactly? -
I try QWebEngineSettings::setOfflineStoragePath(E:\database) but I got message "too much arguments"...
-
What does
QWebEnigineSettings
have to do with the situation at hand ? -
I don't know lol I just copy what qt5.9 docs say to do
-
If I'm wrong that can explain the error message lol
-
this line in the cpp file make the directory of the local storage next the exe
engine.setOfflineStoragePath(".");
-
That's not a good idea. e.g. Mofile platforms don't allow to write in the same folder as the executable. You should rather use QStandardPaths to retrieve a suitable folder.
-
That is only example to choose other directory just replace the dot by the desired folder path