Hello guys,

I have 4 different QML files (Item1.qml ; Item2.qml ; Item3.qml ; Item4.qml) and a MainPage.qml file. I use them like this:

Qt Code:
  1. ...
  2.  
  3. Item1 {
  4. id: item1
  5. ...
  6. }
  7.  
  8. Item2 {
  9. id: item2
  10. ...
  11. }
  12.  
  13. Item3 {
  14. id: item3
  15. ...
  16. }
  17.  
  18. Item4 {
  19. id: item4
  20. ...
  21. }
  22.  
  23. ...
To copy to clipboard, switch view to plain text mode 

I added this code to my main file, MainPage.qml, and it works perfectly with my animations. However I have a problem: 4 different Item file has same function and I want to use these functions together (for example if it is a calculation function, then, I want to add my main file total calculation).

How can I connect them? Any idea?