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

HOW TO GO NEXT PAGE AND COME BACK WITH OUT USING NAVIGATION PANE

HOW TO GO TO NEXT PAGE ,FROM MAIN.CPP TO ANOTHER CLASS.CPP,WITH OUT USING NAVIGATION PANE

Highlighted
Developer
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 LE
My Carrier: Three

Re: HOW TO GO NEXT PAGE AND COME BACK WITH OUT USING NAVIGATION PANE

Firstly, check your caps lock key isn't stuck as C++ is a case-sensitive language Smiley Wink

 

Secondly, in Class.cpp's constructor:

 

MyClass::MyClass(bb::cascades::Application *app) : QObject(app)
{
    // Inflate the layout
    mQml = QmlDocument::create("asset:///MyClassLayout.qml").parent(this);

    // create root object for the UI
    mRoot = mQml->createRootObject<Container>();

    // set created root object as a scene
    app->setScene(mRoot);
}

 

And in main.cpp:

 

new MyClass(&app);

 



Did this post help you? If so, please make sure to "like" it!
Regular Contributor
Posts: 60
Registered: ‎06-08-2012
My Device: 8900,9550
My Carrier: tatadocomo

Re: HOW TO GO NEXT PAGE AND COME BACK WITH OUT USING NAVIGATION PANE

suppose if go to  second page how i will come back to  first  page

example

Developer
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 LE
My Carrier: Three

Re: HOW TO GO NEXT PAGE AND COME BACK WITH OUT USING NAVIGATION PANE

[ Edited ]

That's precisely what a Navigation pane is for. I'd suggest using that if you're doing any sort of drill-down navigation structure. Is there any specific reason why you wouldn't want to use one?



Did this post help you? If so, please make sure to "like" it!
Regular Contributor
Posts: 60
Registered: ‎06-08-2012
My Device: 8900,9550
My Carrier: tatadocomo

Re: HOW TO GO NEXT PAGE AND COME BACK WITH OUT USING NAVIGATION PANE

i know about navigation pane

but i want to give tabpane in middle of application

Developer
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 LE
My Carrier: Three

Re: HOW TO GO NEXT PAGE AND COME BACK WITH OUT USING NAVIGATION PANE

A TabbedPane should only ever be used at the first page of your application. i'd suggest taking a look at the UI Navigation Guidelines and re-thinking about how your application's navigation is structured.



Did this post help you? If so, please make sure to "like" it!
Developer
Posts: 18
Registered: ‎04-09-2013
My Device: Z10
My Carrier: Vodafone

Re: HOW TO GO NEXT PAGE AND COME BACK WITH OUT USING NAVIGATION PANE

You can open  next page as sheet and close sheet when come back.

Hope it helps.

Thanks