10-08-2012 03:26 AM
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").par
qml->setContextProperty("cs", this);
AbstractPane* root = qml->createRootObject<AbstractPane>();
void App:
penTabbedPane(){
QmlDocument *qmlTab = QmlDocument::create("asset:///tabs.qml").parent(th
TabbedPane* mTab;
mTab = qmlTab->createRootObject<TabbedPane>();
qobject_cast<NavigationPane *>(root)->push(qobject_cast<Page *>(mTab));
}
--------------------------------------------------
But the TabbedPane qml does not get opened.