12-11-2012 05:45 PM
Hi, in my main.qml I have a TabbedPane and I registered a SettingsActionItem like this:
attachedObjects: [
ComponentDefinition {
id: settingsPage
source: "settings.qml"
}
]
Menu.definition: MenuDefinition {
// Add a Help action
helpAction: HelpActionItem {
onTriggered: {
applicationMenuField.text = "Selected the Help action."
}
}
// Add a Settings action
settingsAction: SettingsActionItem {
onTriggered: {
tabPane.push(settingsPage);
}
}
}However, the settings.qml page is not rendered.
I've tried using a Sheet, but that didn't work out either. It showed up, but the Button that called sheet.close() only worked once (i.e. hitting the Settings button in the application menu didn't show the Sheet a second time).
Does anyone have any example of a decent Settings page using the application menu?
12-12-2012 01:13 PM