我已经尝试了BB-10中的onClick功能,当点击时,我无法推送另一个qml文件点击功能
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"
}
]
}
}点击(text:"y.qml“)按钮时无法查看”登录“,有没有人可以发送一些解决方案来解决这个问题?
发布于 2012-11-28 23:13:46
你不能在navigationPage中推送选项卡式窗格,你只能推送一个页面;但在TabbedPane中,你可以使用导航窗格。
发布于 2013-02-11 17:24:53
您不能将导航窗格推送到选项卡式窗格,您可以将导航窗格添加到选项卡中,如下所示
Tab {
id: loginregisterTab
NavigationPane {
peekEnabled: false
id: test
y{//here u can go to y.qml
}
}
}在y.qml中,你已经包含了类似的id
NavigationPane{
id: navigationPane
Page {
Container {
id: test
}
}
}https://stackoverflow.com/questions/13607871
复制相似问题