Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Moved] How to bundle local db with meego/symbian app?

[Moved] How to bundle local db with meego/symbian app?

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 2.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rashid.inayat
    wrote on last edited by
    #1

    Hi!

    I am new to meego/symbian app development.
    In my app I need to bundle book contents in the form of db within the app.
    I got to be successful in combining local db with app for symbian build using following code in main.cpp file, by changing path of local data in main.cpp file.

    @QDeclarativeEngine engine;
    QString customPath = "qml/OfflineStorage";

    QmlApplicationViewer viewer;
    
    
    QDir dir;
    if(dir.mkpath(QString(customPath))){
        //qDebug() << "Default path >> "+engine.offlineStoragePath();
        //engine.setOfflineStoragePath(QString("qml/OfflineStorage"));
        //viewer.engine()->setOfflineStoragePath(QString("qml/OfflineStorage"));
        qDebug() << "New path >> "+engine.offlineStoragePath();
    }@
    

    Also declare following code in .pro file

    @folder_02.source = qml/OfflineStorage
    folder_02.target = qml
    DEPLOYMENTFOLDERS += folder_02

    addFiles.sources = qml/OfflineStorage/Databases/47044b67cbdfd6d20587378e42ed6a5f.sqlite
    addFiles.path = qml/OfflineStorage
    DEPLOYMENT += addFiles@

    Please do help me quickly as I could not get data on meego device.
    It always give error that table book does not exists, even on symbian it works fine with above mentioned path.

    Thank You

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sikuda
      wrote on last edited by
      #2

      Try absolute path e:/qml/OfflineStorage.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved