Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Native Development

Reply
Developer
sbeeckma
Posts: 20
Registered: ‎10-09-2010
My Carrier: Base (Belgium)

Cascades & QML: SettingsActionItem - opening a Settings Page

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?

Please use plain text.
Developer
sbeeckma
Posts: 20
Registered: ‎10-09-2010
My Carrier: Base (Belgium)

Re: Cascades & QML: SettingsActionItem - opening a Settings Page

Sorry, this is in the wrong forum. (Please put the "Native" and "Cascades" forums closer to each other.)
Please use plain text.