Hi

I have a Physics.qml

Qt Code:
  1. Item {
  2. id: root
  3. .........
  4. signal destroyBullet()
  5. onDestroyBullet: {
  6. console.log("destroy Physics.qml")
  7. root.destroy()
  8. }
  9. ...........
  10. }
To copy to clipboard, switch view to plain text mode 

and a Bullet.qml
Qt Code:
  1. import QtQuick 2.0
  2.  
  3. Physics {
  4. id: root
  5. ................
  6. onDestroyBullet: {
  7. console.log("destroy Bullet.qml")
  8. root.destroy()
  9. }
  10. .........
  11. }
To copy to clipboard, switch view to plain text mode 

Bullet is dynamically created, when is destroyed, do I need to call destroy() in both Bullet.qml and Physics.qml ? Or it's enought just to call destroy in Physics.qml, or in Bullet.qml?