我是 Blackberry 10 开发的新手。我创建了一个按钮,但我无法从当前屏幕到下一个屏幕执行推送屏幕功能。这是我正在使用的代码:
onClicked:{
navigationPane.push(firstPage);
}
而且我还使用实现了一个选项卡
TabbedPane {
activePane: Page {
Label {
id: label
text: "What do you like more, kittens or puppies?"
}
}
sidebarState: SidebarState.VisibleCompact
onActiveTabChanged: {
}
Tab {
title: "Puppies"
onTriggered: label.text = "kittens"
NavigationPane {
id: navigationPane
//how to call a screen from this,i got stuck with this,can any some send me simple code for pushing a screen.?
}
}
Tab {
title: "Kittens"
onTriggered: label.text = "I love kittens!"
NavigationPane {
id: navigationPane
> **`//how to call a screen from this,i got stuck with this,can any some send me simple code for pushing a screen.?`**
}
}
}
在此选项卡中,我想在单击选项卡图标时执行推送屏幕功能。谁能帮我完成这两个功能?
谢谢。