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
Regular Contributor
kishorerao
Posts: 60
Registered: ‎06-08-2012
My Device: 8900,9550

First page and Second page

[ Edited ]

login page  is first page ,after login then  go to second page  with out using navigation pane concept

after  logout go to login page

Contributor
zinuzoid
Posts: 11
Registered: ‎05-17-2013
My Device: Z10

Re: First page and Second page

[ Edited ]

maybe you can use c++
root->setScene(secondpage);

 

but without navigationpane stack you probably get lost.

Regular Contributor
wibi_okezone
Posts: 51
Registered: ‎04-24-2013
My Device: Z10

Re: First page and Second page

May be you can use  ComponentDefinition.

Regular Contributor
kishorerao
Posts: 60
Registered: ‎06-08-2012
My Device: 8900,9550

Re: First page and Second page

what is ComponentDefinition?

Regular Contributor
wibi_okezone
Posts: 51
Registered: ‎04-24-2013
My Device: Z10

Re: First page and Second page

I have example like this: 

NavigationPane {
  id: navPane
  
  Page{
     Container{
         Button{
          onClicked:{
                 var page = secondPage.createObject();
//you can pass variable using property navPane.push(page); } } } attachedObjects: [ ComponentDefinition { id: secondPage /*here your second page *you can use source to call qml *like : source : "secondPage.qml" * or */ Page{ Container{ //your elements } } } ] } }