Parent Directory | Revision Log
import files
1 | import Qt 4.7 |
2 | |
3 | Rectangle { |
4 | id: page |
5 | |
6 | function pageOpen(command) { |
7 | if ( command=="menu") { |
8 | gui.returnSource=""; |
9 | Loader {source: "main.qml"}; |
10 | } |
11 | if (command=="quit") { |
12 | navit.quit(); |
13 | } |
14 | |
15 | } |
16 | |
17 | Component.onCompleted: pageOpen(gui.commandFunction); |
18 | |
19 | Text { id: myText; anchors.centerIn: parent; text: "Hi, i'm Navit!"; color: "Black"; font.pointSize: gui.height/32 } |
20 | } |
Visit the ZANavi Wiki |