title: Accessing TextField from Another QML File
body: <p>I have two .qml files:</p>
  
  <p><strong>CustomText.qml</strong>:</p>
  
  <pre><code>Item 
  {
      TextField
      {
          id: t1
          placeholderText: qsTr("Enter name")
      }
  }
  </code></pre>
  
  <p><strong>main.qml</strong>:</p>
  
  <pre><code>Window 
  {
      visible: true
      width: 640
      height: 480
      title: qsTr("Hello World")
  
      CustomText {width: 200; height: 200}
  
      Rectangle
      {
          id: r1      
          border.color: "black"
          width: 200
          height: 200
          x: 200
          y: 200
          Text 
          {
              text: t1.text
          }
      }
  }
  </code></pre>
  
  <p>This code is not working, because the id is not known. How can I access the text from the <code>TextField</code> in <code>main.qml</code>?</p>