title: Instantiating a "native" QML type dynamically
body: <p>Is it possible to pick between different types of sub-components dynamically (during instantiation)?</p>
  
  <p>For example, some pseudocode (using Qt 5.9):</p>
  
  <pre><code> //MyComp.qml
   import QtQuick 2.9
   import QtQuick.Layouts 1.3          
  
   Item {
     property bool useLayout: true
  
     //Here I want to allow the user to choose
     //whether a ColumnLayout or Column is used 
     //(e.g., by means of the useLayout property)
     ColumnLayout { //Or Column
       ...
     }
   ...
   }     
  </code></pre>
  
  <hr>
  
  <pre><code> //main.qml
   import QtQuick 2.9
   import QtQuick.Layouts 1.3
   import QtQuick.Controls 2.9
  
   ApplicationWindow {
   width: 640
   height: 480
   ...
    MyComp {
      id: a
      useLayout: false
      ...
     }
   }
  </code></pre>