Created
September 30, 2012 19:20
-
-
Save 40/3808200 to your computer and use it in GitHub Desktop.
QML Menu in BB10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Default empty project template | |
| import bb.cascades 1.0 | |
| // creates one page with a label | |
| Page { | |
| Menu.definition: MenuDefinition { | |
| // Add a Help action | |
| helpAction: HelpActionItem { | |
| // do something there | |
| onTriggered: { | |
| } | |
| } | |
| // Add a Settings action | |
| settingsAction: SettingsActionItem { | |
| onTriggered: { | |
| //do something here | |
| //like show the settings screen | |
| } | |
| } | |
| } | |
| Container { | |
| layout: DockLayout { | |
| } | |
| Label { | |
| text: qsTr("Hello World") | |
| textStyle.base: SystemDefaults.TextStyles.BigText | |
| verticalAlignment: VerticalAlignment.Center | |
| horizontalAlignment: HorizontalAlignment.Center | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment