Hi all,
I'm using Loader in order to load a file.qml from an other file , and it works perfectely
but just one time
there is my code
Loader {
id: dialogLoader
onLoaded: {
console.log("FILE LOADED")
}
}
Loader {
id: dialogLoader
onLoaded: {
console.log("FILE LOADED")
}
}
To copy to clipboard, switch view to plain text mode
and in the event onClick
Button{
id:btn
text: "tata"
Image {
source: "qrc:/plgmgrresources/qml/applications/images/icon1.png"
anchors.left: parent.left
anchors.leftMargin: 5
anchors.verticalCenter: parent.verticalCenter
width: 16
height: 16
}
width: 150
onClicked: {
dialogLoader.source = "qrc:/plgmgrresources/qml/applications/file2.qml"
}
}
Button{
id:btn
text: "tata"
Image {
source: "qrc:/plgmgrresources/qml/applications/images/icon1.png"
anchors.left: parent.left
anchors.leftMargin: 5
anchors.verticalCenter: parent.verticalCenter
width: 16
height: 16
}
width: 150
onClicked: {
dialogLoader.source = "qrc:/plgmgrresources/qml/applications/file2.qml"
}
}
To copy to clipboard, switch view to plain text mode
Have you any explaination for this issue ?
ps : sorry for my english
Bookmarks