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. QML and Database question
QtWS25 Last Chance

QML and Database question

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

    Hi everyone

    I would want to know how to connect my game with a database.. My game app would need one so I might wanna ask those who knows or have any idea how to connect to database? My game uses qml and javascript for game logic and I am wondering if this would work because basically i have no idea..

    Second

    @
    Button{
    id:playicon
    Image{
    source: "K:/mukha/playicon.png"
    }
    onClicked:{
    menuPanel.state="hide"
    }
    }
    @

    the codes above the codes for my play button... If the user clicks the play button, the device would then display let's say the first area/level of the game.. Do i have to hide my menu panel like the codes displayed above? Is it possible to jump from one "frame" or "scene" to another "scene"?

    Thanks in advance for the answers and suggestions

    God Bless

    [EDIT: code formatting (missing second @), Volker]

    1 Reply Last reply
    0
    • L Offline
      L Offline
      loladiro
      wrote on last edited by
      #2

      Regarding the database: here is an "example":http://doc.qt.nokia.com/4.7-snapshot/declarative-sqllocalstorage.html

      About your second question. You could use a "loader item":http://doc.qt.nokia.com/4.7-snapshot/qml-loader.html to first load your menu and then your levels. Otherwise you could also use "states":http://doc.qt.nokia.com/4.7-snapshot/qdeclarativestates.html

      [EDIT: fixed link (surplus space), Volker]

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lexan
        wrote on last edited by
        #3

        thank you loladiro for your response. it's a great help

        i also want to ask. does mouseArea also refer to finger as "mouse" for touchscreen phones?

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nhojyer07
          wrote on last edited by
          #4

          lexan, my guess is we're from the same school. Anyway, You're correct. MouseArea, as well as Gesture, are used for the touch inputs on touchscreen phones.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lexan
            wrote on last edited by
            #5

            oh yeah?? from what school are you? :D you're a Filipino?

            1 Reply Last reply
            0
            • N Offline
              N Offline
              nhojyer07
              wrote on last edited by
              #6

              taking up thesis in TIP.

              If you don't have further questions, you can label your thread as solved now. We might get scolded for possible spam here. lol

              1 Reply Last reply
              0
              • L Offline
                L Offline
                lexan
                wrote on last edited by
                #7

                haha ok thanks. rey john castillo :D

                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