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

Qt Code:
  1. Loader {
  2. id: dialogLoader
  3. onLoaded: {
  4. console.log("FILE LOADED")
  5. }
  6. }
To copy to clipboard, switch view to plain text mode 

and in the event onClick

Qt Code:
  1. Button{
  2. id:btn
  3. text: "tata"
  4. Image {
  5. source: "qrc:/plgmgrresources/qml/applications/images/icon1.png"
  6. anchors.left: parent.left
  7. anchors.leftMargin: 5
  8. anchors.verticalCenter: parent.verticalCenter
  9. width: 16
  10. height: 16
  11. }
  12. width: 150
  13. onClicked: {
  14. dialogLoader.source = "qrc:/plgmgrresources/qml/applications/file2.qml"
  15. }
  16.  
  17. }
To copy to clipboard, switch view to plain text mode 

Have you any explaination for this issue ?
ps : sorry for my english