Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 107
Registered: ‎03-27-2010
My Device: 8320
My Carrier: hutch
Accepted Solution

navigation help in qml



I had made one application using single page application using QML.Now I want to put a setting screen for this application and want to make a menu item for it by which user can click on setting option and user will get that screen to set the parameters.Which will be using in application's logic.


So i need help about how to make a screen which will be pushed when user will click on setting button or menu item.


I want to do it using QML.


Can any one please help me on it?


Thanks & Regards

Nrupay Shah

Posts: 103
Registered: ‎12-31-2012
My Device: Blackberry 9810
My Carrier: Verizon

Re: navigation help in qml

[ Edited ]

You can add the SettingsPage.qml as an attached object in main.qml.

attachedObjects: [ ComponentDefinition { id: contentPageDefinition source: "SettingPage.qml" } ]

Push the setting page in the on Triggered of the rquired button as follows.

onTriggered: { var contentpage = contentPageDefinition.createObject(); nav.push(contentpage); }