×

Discussion Board

Results 1 to 5 of 5

Hybrid View

  1. #1
    Registered User
    Join Date
    May 2012
    Posts
    3

    Symbian Belle FP1 + QML App + sqlite offlineStoragePath = PROBLEM!!!

    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:
    {
    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 found a couple of bugs on 'setOfflineStoragePath' but they should be closed in Qt 4.8.0 that is deployed with Belle FP1.

    I need to have my db file outside in an accessible directory. Can you help me?

    Thanks in Advance

  2. #2
    Registered User
    Join Date
    May 2012
    Posts
    3

    Re: Symbian Belle FP1 + QML App + sqlite offlineStoragePath = PROBLEM!!!

    Anybody can help?

  3. #3
    Regular Contributor
    Join Date
    Mar 2012
    Posts
    144

    Re: Symbian Belle FP1 + QML App + sqlite offlineStoragePath = PROBLEM!!!

    I'd suggest to move db interactions to c++ code

  4. #4
    Registered User
    Join Date
    May 2012
    Posts
    3

    Re: Symbian Belle FP1 + QML App + sqlite offlineStoragePath = PROBLEM!!!

    Can you explain better?

    If I do not set "OfflineStoragePath", I correctly work with the DMBS.
    It only fails to create the database when I set the parameter.

    What are you suggesting to move to c++?

  5. #5
    Nokia Developer Expert
    Join Date
    May 2012
    Posts
    5

    Re: Symbian Belle FP1 + QML App + sqlite offlineStoragePath = PROBLEM!!!

    Hi,

    by default a database is saved to private folder on installed drive.
    e.g. "C:\Private\e2c6cd9e\QML\OfflineStorage" where e2c6cd9e is application uid.

    There is no problem to change database folder. I tested your code in my Qt & qml project and I managed to create new db.ini & db.sqlite files to "data" folder.
    Seems that files are saved to "C:\data\Databases" folder.

    Note that after Belle Fp1 update you need to install new CODA and update your Qt SDK . Please see page
    Otherwise application hangs up

Similar Threads

  1. problem with answering call on symbian belle
    By prashantchougule.cs in forum Symbian
    Replies: 13
    Last Post: 2012-05-16, 11:26
  2. problem with nokia 701 symbian belle ...
    By super_rider in forum General Development Questions
    Replies: 1
    Last Post: 2011-11-04, 17:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×