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
Megha_9_dec
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::smileysurprised:penTabbedPane(){

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. 

Please use plain text.