title: Interacting with delegated QML Component in Repeater from C++
body: <p>I can't access to delegated QML Component in Repeater from C++. Please find codes below. Thanks.</p>
  
  <p>main.cpp</p>
  
  <pre><code>#include &lt;QApplication&gt;
  #include &lt;QDebug&gt;
  #include &lt;QQuickView&gt;
  #include &lt;QQuickItem&gt;
  
  int main(int argc, char *argv[]) {
      QApplication app(argc, argv);
      QQuickView view;
      view.setSource(QUrl(QStringLiteral("qrc:/Main.qml")));
      view.show();
      QQuickItem *object = view.rootObject();
      QObject *rectangle = object-&gt;findChild&lt;QObject*&gt;("rect1");
  
      if (!rectangle)
      qDebug() &lt;&lt; "MyError: rectangle was not found";
  
      app.exec();
  }
  </code></pre>
  
  <p>Main.qml</p>
  
  <pre><code>import QtQuick 2.4
  
  Row {
      Repeater {
          model: 3
          Rectangle {
              width: 50; height: 50
              color: index %2 ? "black" : "white"
              objectName: "rect" + index
          }
      }
  }
  </code></pre>
  
  <p>Console output:</p>
  
  <pre><code>MyError: rectangle was not found
  </code></pre>