title: Attribute parent dynamically to a QML component based in a condition
body: <p>How to attribute a parent dynamically when the QML component is being created  based in a condition?</p>
  
  <p>Example:</p>
  
  <p>//FirstFile.qml</p>
  
  <pre><code>SecondFile{
  
    Rectangle {
      id: bodyRect
  
    }    
  }
  </code></pre>
  
  <p>//SecondFile.qml</p>
  
  <pre><code>Rectangle{
    id: rectangleId
  
    Flickable{
      id: flickableId
  
    }    
  }
  </code></pre>
  
  <p>In this example the parent of <code>bodyRect</code> is <code>rectangleId</code>.</p>
  
  <p>How to attribute the <code>flickableId</code> as a parent of <code>bodyRect</code>if a condition is true ?</p>