BB-10 で関数を作成しましたonClick
が、クリックすると別の qml ファイルをプッシュすることができません。
NavigationPane {
id: navigationPane
Button {
text: "LOG IN"
onClicked: {
var test = screen.createObject();
navigationPane.push(test);
}
attachedObjects: ComponentDefinition {
id: screen
source: "y.qml"
}
}
}
コードは次のy.qml
とおりです
NavigationPane {
id:navigationPane
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"
}
]
}
}
y.qml
while Clicking( )を表示できず、text: "LOG IN"
Image ボタンをクリックしている間もz.qml
ページに移動できません。この問題を解決するために、誰か解決策 (コード、例) を送ってもらえますか? ありがとう