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. Database... problem
Forum Updated to NodeBB v4.3 + New Features

Database... problem

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

    were having a problem about database to be used. we are required to have a database that will store the current state of the game as well as the scores is it suitable if we use offline storage or use C++ as backend? please help

    1 Reply Last reply
    0
    • F Offline
      F Offline
      favoritas37
      wrote on last edited by
      #2

      You need to use the Offline Storage API. It is a subset of MySql and it works fine.

      Take a look here: http://doc.qt.nokia.com/4.7-snapshot/qdeclarativeglobalobject.html#offline-storage-api

      and also the following game tutorial does exactly what you are looking for. It stores the highscores offline which can easily be extended to save any data you want ( the state of the game ). http://doc.qt.nokia.com/4.8/declarative-tutorials-samegame-samegame4.html

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Maheshwara
        wrote on last edited by
        #3

        Yeah... I saw this but can i use javascript if i go to an embedded level projects?.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rahul Das
          wrote on last edited by
          #4

          bq.store the current state of the game as well as the scores

          you can make use of "QSettings":http://doc.qt.nokia.com/stable/qsettings.html#details as well.


          Declaration of (Platform) independence.

          1 Reply Last reply
          0
          • F Offline
            F Offline
            favoritas37
            wrote on last edited by
            #5

            I have no knowledge on that but i would suppose that if QML is supported to that embedded device then the offline storage & javascript would be supported as well.

            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