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.qmlwhile Clicking( )を表示できず、text: "LOG IN"Image ボタンをクリックしている間もz.qmlページに移動できません。この問題を解決するために、誰か解決策 (コード、例) を送ってもらえますか? ありがとう