title: File not found error for a QML file inside a Qt resource
body: <p><strong>.pro</strong></p>
  
  <pre><code># Add more folders to ship with the application, here
  folder_01.source = qml/qmlDeploy
  folder_01.target = qml
  DEPLOYMENTFOLDERS = folder_01
  
  TEMPLATE += app
  QT += qml
  
  # The .cpp file which was generated for your project. Feel free to hack it.
  SOURCES += main.cpp
  
  # Please do not modify the following two lines. Required for deployment.
  include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
  qtcAddDeployment()
  
  RESOURCES += \
      resource.qrc
  </code></pre>
  
  <p><strong>main.cpp</strong></p>
  
  <pre><code>#include &lt;QGuiApplication&gt;
  #include &lt;QQuickView&gt;
  
  int main(int argc, char *argv[])
  {
      QGuiApplication app(argc, argv);
  
      QQuickView view;
      //view.setSource(QUrl::fromLocalFile("qml/qmlDeploy/main.qml"));
      view.setSource (QUrl::fromLocalFile("qrc:/main.qml"));
      view.show();
  
      return app.exec();
  }
  </code></pre>
  
  <p><strong>resource.qrc</strong></p>
  
  <pre><code>&lt;!DOCTYPE RCC&gt;
  &lt;RCC version="1.0"&gt;
  
  &lt;qresource prefix="/"&gt;
      &lt;file&gt;qml/qmlDeploy/main.qml&lt;/file&gt;
  &lt;/qresource&gt;
  
  &lt;/RCC&gt;
  </code></pre>
  
  <p><strong>main.qml</strong></p>
  
  <pre><code>import QtQuick 2.0
  
  Rectangle { width: 100; height: 100; color: "red" }
  </code></pre>
  
  <h2>Problem statement:</h2>
  
  <p><strong>When I compile the above programs using QtCreator the following error is shown:</strong><br>
  <strong>Error:</strong></p>
  
  <p><code>file:///home/ppp/documents/test/build-qmlDeploy-Desktop_Qt_5_1_0_GCC_64bit-Debug/qrc:/main.qml: File not found</code></p>