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] Where does openDatabaseSync() come from?
Forum Updated to NodeBB v4.3 + New Features

[Solved] Where does openDatabaseSync() come from?

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 4 Posters 5.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.
  • D Offline
    D Offline
    DevPB
    wrote on last edited by
    #1

    In the QML example : sqllocalstorage , the function openDatabaseSync() does it come from the Qt 4.7 library or is it inbuilt?

    if either one, why doesn't it show up in the code completion when I press crtl-space?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      anselmolsm
      wrote on last edited by
      #2

      [quote author="DevPB" date="1286735460"]In the QML example : sqllocalstorage , the function openDatabaseSync() does it come from the Qt 4.7 library or is it inbuilt?
      [/quote]

      It appears in Qt docs "here":http://doc.trolltech.com/4.7-snapshot/qdeclarativeglobalobject.html#offline-storage-api. I'm not a javascript specialist but a quick search showed this method is part of "this w3c spec":http://www.w3.org/TR/WebSimpleDB/.

      Anselmo L. S. Melo (anselmolsm)

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DevPB
        wrote on last edited by
        #3

        Ah, that clears it up, thanks

        1 Reply Last reply
        0
        • O Offline
          O Offline
          owenzhao
          wrote on last edited by
          #4

          Thank you. This helps me too.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            markc
            wrote on last edited by
            #5

            And FWIW the actual SQlite databases are stored here on (my) linux system...

            @~ ll ~/.local/share/data/QML/OfflineStorage/Databases/
            total 16
            -rw-r--r-- 1 markc users 115 Dec 1 22:51 038c3b88c047f6e02ebfea279fa295a7.ini
            -rw-r--r-- 1 markc users 3072 Dec 1 23:28 038c3b88c047f6e02ebfea279fa295a7.sqlite
            -rw-r--r-- 1 markc users 109 Dec 9 17:29 bb64fbd38becdb6dea4cad4c4ed3ae31.ini
            -rw-r--r-- 1 markc users 2048 Dec 9 17:33 bb64fbd38becdb6dea4cad4c4ed3ae31.sqlite
            @

            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