title: Replace QML file content by another one
body: <p>I have the following <code>main.qml</code> file:</p>
  
  <pre><code>import QtQuick 2.3
  import QtQuick.Controls 1.2
  
  ApplicationWindow 
  {
      visible: true
      width: 640
      height: 480
  
     Button 
     {
          text: "Button"
          onClicked: qml_file_loader.loadFile("help.qml");
     }
  }
  </code></pre>
  
  <p>When the button is clicked, I would like to inject the content of the <code>help.qml</code> file. What I am currently doing is opening another window, by loading the file with the following code in <code>loadFile(const QString)</code>:</p>
  
  <pre><code>void QMLFileLoader::loadFile(const QString page)
  {
      m_view.setSource(QUrl::fromLocalFile(page));
      m_view.show();
  }
  </code></pre>
  
  <p>What would I need to do in order to replace the current <code>QML</code> file?</p>
  
  <p>The objective behind all this is to separate the <code>UI</code> from the logic that will handle the data updating the <code>QML</code> files. The <code>C++</code> code is a library that will be used in other projects.</p>