Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. change offlineStoragePath qml

change offlineStoragePath qml

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 208 Views 1 Watching
  • 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.
  • F Offline
    F Offline
    filipdns
    wrote on last edited by
    #1

    Hello, I want to update the local data base by delete it and replace it by master database.

    directly copy the master to local make it fail.

    then I want to change offlineStoragePath :

    first, I want to set the location of the local database with:

    main.cpp

    QQmlApplicationEngine engine;
    engine.rootContext()->setContextProperty("engine", &engine);
    engine.load(QUrl(QStringLiteral("qrc:/qml/main.qml")));
    

    main.qml

    Component.onCompleted:
        {engine.offlineStoragePath="E:/database"}
    

    but it's not working

    Could you help me?

    thank you very much

    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