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

Cascades Development

Reply
Regular Contributor
prathipa84
Posts: 55
Registered: ‎03-14-2012
My Carrier: none

Load qml in another qml file

Hello,

 

I am having two qml file and having the corresponding class. When I touch a image in the first qml file, need to load the second qml file. How this should be done with the help of BB10 cascades. Please explain me with  piece of sample code and link. Need your help immediately.

 

Thanks.

 

 

Please use plain text.
BlackBerry Development Advisor
selom
Posts: 60
Registered: ‎05-10-2012
My Carrier: none

Re: Load qml in another qml file

Hi there,

 

Please take a look at the answer to a similar question in this thread that was answered. It has sample code to show a simple navigation from one qml to another with a button click.

 

http://supportforums.blackberry.com/t5/Native-Development/need-help-with-native-sdk-10/m-p/1712073

 

cheers

Selom

Please use plain text.
Regular Contributor
prathipa84
Posts: 55
Registered: ‎03-14-2012
My Carrier: none

Re: Load qml in another qml file

Thanks to your reply. Is there any other way to load qml in another qml file without using the Navigane Pane in Cascades???

 

 

Please use plain text.
BlackBerry Development Advisor
selom
Posts: 60
Registered: ‎05-10-2012
My Carrier: none

Re: Load qml in another qml file

Hello,

 

As far as I know, NavigationPane is the only class in Cascades that has the ability to load another qml. If you do not wish to put a NavigationPane in the QML file, you can create a NavigationPane instance in c++, and use that as your root and use it to manually push or pop other qml files, but you still end up using NavigationPane.

 

Cheers

Selom

Please use plain text.