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
Highlighted
Regular Contributor
Posts: 56
Registered: ‎08-21-2012
My Device: BB10
My Carrier: RIM

Push Tabbed Pane from NavigationPane

Hi everyone,

I want to push a Tabbed Pane from Navigation Pane. Following is the snippet I'm using: 

 

---------------------------------------------------------------------------------------------------------------------------------------

QmlDocument *qml = QmlDocument::create("asset:///homescreen.qml").parent(this);
qml->setContextProperty("cs", this);
AbstractPane* root = qml->createRootObject<AbstractPane>();

 

void App:Smiley SurprisedpenTabbedPane(){

QmlDocument *qmlTab = QmlDocument::create("asset:///tabs.qml").parent(this);
TabbedPane* mTab;
mTab = qmlTab->createRootObject<TabbedPane>();

qobject_cast<NavigationPane *>(root)->push(qobject_cast<Page *>(mTab));

}

---------------------------------------------------------------------------------------------------------------------------------------

 


But the TabbedPane qml does not get opened. 

Developer
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device
My Carrier: Developper

Re: Push Tabbed Pane from NavigationPane

No idea ?

I want to do the same thing in QML and it doesn't work too....

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Super Contributor
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Re: Push Tabbed Pane from NavigationPane

In Beta3 it will not possible to push tabbed pane from navigation pane.

Check out Sheet UI component by using that you can add tabbed pane.

https://developer.blackberry.com/cascades/reference/bb__cascades__sheet.html

Developer
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device
My Carrier: Developper

Re: Push Tabbed Pane from NavigationPane

Will it be possible, in a future release, to push a tabbed pane in a navigation pane ?

 

Cause in my case I would like to get the advantage of the stack of the navigation pane, also to get the back button.

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Contributor
Posts: 13
Registered: ‎10-05-2012
My Device: BB 10 dev Alpha
My Carrier: BSNL

Re: Push Tabbed Pane from NavigationPane

thanks lot that solved my problem