I've been trying to research this all weekend, but can't find a similar example. I'm trying to keep a TabPane consistent through out multiple pages. As of right now, once you go past 1 page, the TabPane will no longer be there.
For example:
TabbedPane {
id: root
showTabsOnActionBar: true
Tab {
title: qsTr("Search") + Retranslate.onLocaleOrLanguageChanged
Search {
}
}
}
// Search.qml
NavigationPane {
id: navigationPane
Page {
Button {
onClicked: {
navigationPush.push(pageSearchResults.createObject())
}
}
}
attachObjects: [
ComponentDefinition {
id: pageSearchResults
SearchResults {
}
}
]
}
So basically at this point when we're on the Search
page, we have the TabPane.
As soon as I push that Button
and navigate to the SearchResults
page. The TabPane is gone...
// SearchResults.qml
// We're now 2 pages -IN- from the TabPane
Page {
Button {
onClicked: {
navigationPush.push(nextPage.createObject())
}
}
attachObjects: [
ComponentDefinition {
id: nextPage
NextPage {
}
}
]
}
Also once we're on SearchResults
- it won't let me push
the next page. When I click the Button on SearchResults, you can see the navigationPush(nextPage.createObject())
. It gives the following error:
pushPage : mNavigationStack : ("211") NavigationPane: NavigationPaneOnFwdTransitionDone: emitting push transition ended for page: 211 client top: 211