QML and Database question
-
wrote on 22 Jun 2011, 09:24 last edited by
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]
-
wrote on 22 Jun 2011, 09:48 last edited by
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]
-
wrote on 22 Jun 2011, 11:39 last edited by
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?
-
wrote on 25 Jun 2011, 08:51 last edited by
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.
-
wrote on 25 Jun 2011, 17:55 last edited by
oh yeah?? from what school are you? :D you're a Filipino?
-
wrote on 27 Jun 2011, 17:26 last edited by
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
-
wrote on 28 Jun 2011, 01:22 last edited by
haha ok thanks. rey john castillo :D
2/7