title: QML - what is the id and how does it work?
body: <p>Consider this project structure:</p>
  
  <p><em>MyComponent.qml:</em></p>
  
  <pre><code>Item {
      id: innerId
  }
  </code></pre>
  
  <p><em>Usage.qml:</em></p>
  
  <pre><code>MyComponent {
      id: outerId
  }
  </code></pre>
  
  <p>At first glance it seems like this creates a single object that has 2 different id's simultaneously. But that's impossible, if <code>id</code> is to be considered a property.</p>
  
  <p>To me it seems that an <code>id</code> is not so much a property <em>of an object</em> as it is a property <em>of an object declaration</em>. Is that true?</p>
  
  <p>It would explain how I can refer to the object as <code>innerId</code> in <code>MyComponent.qml</code> and as <code>outerId</code> in <code>Usage.qml</code> yet have it be the same object in both places.</p>