Hello guys,

Here is my loader code and I didn't understand how can the item1.qml work after it loads. Any idea?

//loader.qml
Qt Code:
  1. Item {
  2. id: item_1
  3. Image {
  4. id: image1
  5. source: "images/image1.png"
  6. }
  7. Loader {
  8. id: mainLoader
  9. MouseArea {
  10. onEntered: {
  11. mainLoader.source = "item1.qml";
  12. }
  13. }
  14. }
  15. }
To copy to clipboard, switch view to plain text mode