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. [SOLVED] QtQuick.LocalStorage 2.0 on Blackberry Playbook

[SOLVED] QtQuick.LocalStorage 2.0 on Blackberry Playbook

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.4k 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.
  • E Offline
    E Offline
    epicfailguy93
    wrote on last edited by
    #1

    Initializing the database on my playbook does not work like on the desktop so I had a few questions:

    1. Where the database is stored on the device?
    2. If it is playbook:/accounts/1000/appdata/%appname%, how do I get access to the directory? It seems I do not have permission to access this directory.
    3. Am I can from my program completely clean database (drop all tables)?
    1 Reply Last reply
    0
    • E Offline
      E Offline
      epicfailguy93
      wrote on last edited by
      #2

      I'm sorry, it was all working properly.
      You can not remove all tables from the database with one command, only separately, eg

      @var db = Sql.LocalStorage.openDatabaseSync(..);

      function clearScores() {
      db.transaction(
      function(tx) {
      tx.executeSql('DROP DATABASE Scores;');
      }
      );
      }@
      A lot of interesting information here http://doc-snapshot.qt-project.org/qt5-dev/qtquick/qmlmodule-qtquick-localstorage2-qtquick-localstorage-2.html
      and in the source code: qtdeclarative/src/imports/localstorage/plugin.cpp

      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