Re: N9 and SQLITE database
I have similar code working. Are you sure that it is not a problem on path?
Otherwise what it means doesn't work? it give you any error? crash?
Re: N9 and SQLITE database
May I ask, why do you do :
[quote]
QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
QFileInfo i("qml/Myproject/sqlite/Databases/bd.sqlite");
db.setDatabaseName(QDir::toNativeSeparators(i.absoluteFilePath()));
db.open();
[/quote]
The javascript will have no use for it whatsoever.
Also, if I remember correctly, you have to enable offline storage explicitly. I *could* post you the link with an example, but - oh - harmattan-dev is down, so.... :/
Re: N9 and SQLITE database
Hi nowheremanmail
thanks for your answer the error is i can't open the data base the path of my DB : qml/MyProject/SQLite/DB/test.sqlite
the same path worked perfectly with symbian
thanks in advance for your help
Re: N9 and SQLITE database
It is quite easy.
In N9 you should better use absolute path
such as this:
view.engine()->setOfflineStoragePath("qml/MyProject/sqlite");
you should correct it to this path better "opt/yourProjectName/qml/MyProject/sqlite"
yourProjectName is your real project name.