title: How to access a ID across QML files
body: <p>I am not getting how to access a ID from one QML to another QML.</p>
  
  <p><strong>NOTE:</strong> QML files are located in different directory ,Below is the code:</p>
  
  <p><strong>//QML1.qml</strong></p>
  
  <pre><code>Rectangle
  {
      property alias rect1:rect1
      property string title:"some text"
      id:rect1
  }
  </code></pre>
  
  <p><strong>//QML2.qml</strong></p>
  
  <pre><code>Text
  {
     text:rect1.title //**ERROR** ReferenceError: rect1 is not defined
  }
  </code></pre>
  
  <p><strong>[EDIT 1]</strong> : Folder Structure:</p>
  
  <pre><code>|- Main Directory
       |- QML1 Directory
       |- QML2 Directory
  </code></pre>
  
  <p><strong>[EDIT 2]</strong>: <strong>//Main.qml</strong></p>
  
  <pre><code>ApplicationWindow
  {
     id:window
     width:600
     height:400
     QML2
     {
        //Code goes here and I need to access QML1 variable without initializing it. 
     }
  }
  </code></pre>