you cannot able to push one navigationPane
to other here is the sample
your x.qml
NavigationPane {
id: navigationPane
Button {
text: "LOG IN"
onClicked: {
var test = screen.createObject();
navigationPane.push(test);
}
attachedObjects: ComponentDefinition {
id: screen
source: "y.qml"
}
}
}
your y.qml
Page {
Container {
ImageButton {
defaultImageSource: "asset:///tabs/home_unf.png"
pressedImageSource: "asset:///tabs/home.png"
disabledImageSource: "asset:///group.png"
onClicked: {
var _home = home.createObject()
navigationPane.push(_home);
}
}
}
attachedObjects: [
ComponentDefinition {
id: home
source: "z.qml"
}
]
}
same as call z.qml