我曾嘗試在BB-10的onClick功能,同時點擊我不能能推另一個QML文件上點擊功能Blackberry10級聯的onclick
Button {
text: "LOG IN"
onClicked: {
var test = screen.createObject();
navigationPane.push(test);
}
attachedObjects: ComponentDefinition {
id: screen
source: "y.qml"
}
}
代碼y.qml如下
TabbedPane {
showTabsOnActionBar: true
Tab {
title: "Home"
Page {
id: page1
actions: [
ActionItem {
title: "New"
},
ActionItem {
title: "Delete"
}
]
}
}
Tab {
title: "Options"
Page {
id: page2
actions: [
ActionItem {
title: "Edit"
},
ActionItem {
title: "Save"
}
]
}
}
我無法查看「y.qml」,而單擊(文本:「登錄」)按鈕,任何人都可以發送一些解決方案,以解決這個問題?
參考這[此處選項卡式窗格解釋](https://developer.blackberry.com/cascades/documentation/ui/navigation/multiple_screens_stack.html) – Apple