05-11-2012 08:11 AM
Hello. I am trying to make a simple app with cascades.
Main.qml has 4 butons.
How can i connect those buttons with other *.qml
you know, simple app, just click the app and then go to a different page with every button.
any kind of help will be appreciated. thanks.
Solved! Go to Solution.
05-11-2012 10:38 AM
Instead of Page, start your main.qml with NavigationPane. for example
NavigationPane {
id : navPane
Page {
id : getpage
content: Container {
layout : DockLayout {
}
Button {
text : "hello world!"
onClicked: {
navPane.deprecatedPushQmlByString("page2.qml");
}
}
}
}
} when page2.qml loads it will automatically have a backbutton to go back to your main page etc.
Good luck.
05-11-2012 11:03 AM
thanks!!!! i ll try it later and i ll get back to you. much appreciated!!!!
05-11-2012 01:33 PM
so page2.qml should be a page or a navigation pane?
05-11-2012 02:14 PM
It could be either. If you want to navigate to page3 from page2, then you would put in another NavigationPane. If it doesn't go anywhere but back, then use Page.
01-19-2013 01:58 PM
It is strange it's called deprecatedPushQmlByString... I'm totally BB10 newbie, but it sounds like it's deprecated rite? Should we find another way?