[Solved] Windows phone 8.1 and LocalStorage
-
I'm trying to use LocalStorage for Windows Phone emulator but got a error:
@QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
QSqlQuery::prepare: database not open
qrc:///qml/Db.js:12: Error: Driver not loaded Driver not loaded@In Qt source code SQLITE support disabled:
@if (dictionary.value("XQMAKESPEC").startsWith("winphone")) dictionary[ "SQL_SQLITE" ] = "no"; @See "link with comments":https://qt.gitorious.org/qt/qtbase/commit/2102f7ac7c1a8a2959042e7c0d8815cb5f267661?diffmode=sidebyside
In bugtracker exists "bug":https://bugreports.qt-project.org/browse/QTBUG-37770 with SQLITE support in WinPhone 8.1.
Any ideas about localstorage alternative on Windows Phone?
-
Solution: you can simply compile the patch from https://bugreports.qt.io/browse/QTBUG-37770
Tested both on emulator VS2012/VS2013, winphone devices (WP8.0, WP8.1) VS2012/VS2013.
-
Coursar, I'm currently trying to work around the same issue, are you sure you referenced the correct issue (I can't find any patches in there)?
Thanks,
Alex -
Coursar, I'm currently trying to work around the same issue, are you sure you referenced the correct issue (I can't find any patches in there)?
Thanks,
Alex -
-