title: How do you assign a QML Item to a component property in QML and then use that object inside the component?
body: <p>I'm trying to create a QML object that acts like a wrapper for other objects.  Here's my QML file (Container.qml):</p>
  
  <pre><code>Item {
      property string label
      property Item control
  
      Row {
          Label {
              text: label
          }
  
          // Not sure how to display the control assigned to the control property
      }
  }
  </code></pre>
  
  <p>What I would like to do (in my QML that consumes this component) is something like this:</p>
  
  <pre><code>Container {
      label: "My Label"
      control: Textbox {
          text: "My Value"
      }
  }
  </code></pre>
  
  <p>When fed that QML the result (in the interface) should be something resembling the output from this QML:</p>
  
  <pre><code>Item {
      Row {
          Label {
              text: "My Label"
          }
          Textbox {
              text: "My Value"
          }
      }
  }
  </code></pre>
  
  <p>Is this possible?  When I try to do this I get "cannot assign object to property" when assigning an Item to the control property.  I've searched the Qt forums and Googled this mercilessly, but no success.  If anybody knows the answer it would be greatly appreciated.</p>
  
  <p>Thanks</p>
  
  <p>Jack</p>