Hello!
I've just developed my first QML/Qt application that uses the embedded sqlite Databes to store information.
If i run it (both on windows and on my Nokia 700 Belle FP1) usind the default offlineStoragePath, everything is fine.
When I try to change the DB path (in order to have data automatically backed up!), on MinGW works perfectly while on my the application hangs up.
I particular, during the new DB creation, my App creates the "MyDB".ini file but not the "MyDB".sqlite one.
The code I'm using in main.cpp is the following:
I found a couple of bugs on 'setOfflineStoragePath' but they should be closed in Qt 4.8.0 that is deployed with Belle FP1.{
QScopedPointer<QApplication> app(createApplication(argc, argv));
QmlApplicationViewer viewer;
QDir dirMgr ;
QString myPath("/data");
viewer.engine()->setOfflineStoragePath(QString(dirMgr.toNativeSeparators(myPath)));
viewer.setMainQmlFile(QLatin1String("qml/GestFin/main.qml"));
viewer.showExpanded();
return app->exec();
}
I need to have my db file outside in an accessible directory. Can you help me?
Thanks in Advance



