title: Loading a .FBX file with Qt3D
body: <p>I am very new to QT. I am following an <a href="http://amin-ahmadi.com/2018/01/28/viewing-3d-models-using-qt/" rel="nofollow noreferrer">example</a> to load a .FBX file into a dialog.</p>
  
  <p><code>ToolButton</code> is clicked to load a .FBX file into the <code>Scene3D</code>:</p>
  
  <p><code>main.qml</code></p>
  
  <pre><code>import QtQuick.Controls 2.2
  import QtQuick.Dialogs 1.2
  import QtQuick.Scene3D 2.0
  import Qt3D.Core 2.0
  import Qt3D.Render 2.0
  import Qt3D.Input 2.0
  import Qt3D.Extras 2.0
  
  ApplicationWindow
  {
      visible: true
      width: 640
      height: 480
      title: qsTr("3D Viewer")
  
      header: ToolBar
      {
          ToolButton
          {
              text: "Open 3D Model"
              onPressed:
              {
                  fileDialog.open()
              }
          }
      }
  
      FileDialog
      {
          id: fileDialog
          onAccepted:
          {
              sceneLoader.source = fileDialog.fileUrl
          }
      }
  
      Scene3D
      {
          anchors.fill: parent
  
          aspects: ["input", "logic"]
          cameraAspectRatioMode: Scene3D.AutomaticAspectRatio
  
          Entity
          {
              id: sceneRoot
  
              Camera
              {
                  id: camera
                  projectionType: CameraLens.PerspectiveProjection
                  fieldOfView: 30
                  aspectRatio: 16/9
                  nearPlane : 0.1
                  farPlane : 1000.0
                  position: Qt.vector3d( 10.0, 0.0, 0.0 )
                  upVector: Qt.vector3d( 0.0, 1.0, 0.0 )
                  viewCenter: Qt.vector3d( 0.0, 0.0, 0.0 )
              }
  
              OrbitCameraController
              {
                  camera: camera
              }
  
              components: [
                  RenderSettings
                  {
                      activeFrameGraph: ForwardRenderer
                      {
                          clearColor: Qt.rgba(0, 0.5, 1, 1)
                          camera: camera
                      }
                  },
                  InputSettings
                  {
                  }
              ]
  
              Entity
              {
                  id: monkeyEntity
                  components: [
                      SceneLoader
                      {
                          id: sceneLoader
                      }
                  ]
              }
          }
      }
  }
  </code></pre>
  
  <p>However, the dialog box does not even open and terminates with this error:</p>
  
  <p><code>terminate called after throwing an instance of 'std::bad_alloc'</code></p>
  
  <p>Not quite sure where did it come from since I cannot debug into a <code>.qml</code> file.</p>