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.

inside custom component

Native Development

Reply
Contributor
Posts: 26
Registered: ‎11-10-2013
My Device: Z10
My Carrier: Dialog
Accepted Solution

How do I move from one qml page to another(Navigate between screens)

What is the best way to navigate between each UI page? Suppose  if I need the app to navigate from screen1 to screen2 when I click a button on screen1, what is the easiest way to do it?

 

The only way as far as I am concerned is by connecting the signal to a slot, and loading the second screen inside the slot. I am a beginner in BB development. Please let me know if there are any other easy ways to do this.

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: How do I move from one qml page to another(Navigate between screens)

The best way is to use a navigationPane and push the page on to the stack...

 

http://developer.blackberry.com/native/reference/cascades/bb__cascades__navigationpane.html

 

If you don't want the navigation part then display a sheet...

 

http://developer.blackberry.com/native/reference/cascades/bb__cascades__sheet.html


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Highlighted
Contributor
Posts: 26
Registered: ‎11-10-2013
My Device: Z10
My Carrier: Dialog

Re: How do I move from one qml page to another(Navigate between screens)

okay. I will read through it and use it for my further implementations. Thanks

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: How do I move from one qml page to another(Navigate between screens)

Most of the samples use the navigationPane so they are also worth downloading and taking a look at...

 

http://developer.blackberry.com/native/sampleapps/


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.