title: How to access a specific Component
body: <p>I wrote a little QML application which will create an Object of a <code>Component</code> every time a button is clicked.</p>
  
  <pre><code>import QtQuick 2.6
  import QtQuick.Window 2.2
  
  Window {
      id: mainWindow
      visible: true
      width: 1280
      height: 720
  
      property int idNumberCounter: 1
  
      Component {
          id: testComponent
  
          Rectangle {
              id: rectangleMade
              property int idNumber: 0
              width: 100
              height: 100
              x: 100*idNumber
              border.color: "blue"
          }
      }
  
      //The button for creating
      Rectangle {
          id: buttonMakeRectangle
          color: "red"
          width: 50
          height: 50
          MouseArea {
              anchors.fill: parent
              onClicked: {
                  testComponent.createObject(mainWindow,idNumber:mainWindow.idNumberCounter);
                  mainWindow.idNumberCounter++;
              }
          }
      }
  }
  </code></pre>
  
  <p>What I would like to do now is to have a second button, which will e.g. change the x-Value of the rectangle with the <code>idNumber = 3</code> (if available).</p>
  
  <p>Is there a way to access a specific component?</p>
  
  <p>FYI: Adding a <code>MouseArea</code> to the "rectagleMade" and simply perfom the work there is not possible, because in the real application this rectangles are controlled via dBus from another application. (it will be a windowing manager with QtWayland)</p>
  
  <p>Thanks for help.</p>