title: QML importing module
body: <p>I want to import a custom module in my <code>main.qml</code> file. <code>Main.qml</code> is located under <code>"/"</code> prefix of my <code>qml.qrc</code> resource. </p>
  
  <p>My custom module <code>Config.qml</code> is located within <code>Config</code> subdirectory. (<code>Config</code> directory is where <code>main.qml</code> is, i.e. <code>/path/to/main/Config/Config.qml</code>. </p>
  
  <p>The <code>config.qml</code> and <code>qmldir</code> files are stored under the prefix <code>myPrefix</code> in the <code>qml.qrc</code> file.</p>
  
  <pre><code>Project
  |- Config
      |- Config.qml
      |- qmldir
  |- main.qml
  </code></pre>
  
  <p>Also I created a <code>qmldir</code> file which is according to the documentation <a href="http://doc.qt.io/qt-5/qtqml-modules-identifiedmodules.html" rel="noreferrer">http://doc.qt.io/qt-5/qtqml-modules-identifiedmodules.html</a> necessary. Here are my <code>Config.qml</code> and <code>qmldir</code> files.</p>
  
  <p><strong>Config.qml</strong></p>
  
  <pre><code>pragma Singleton
  import QtQuick 2.0
  QtObject {
      property int myVariable: 10
  }
  </code></pre>
  
  <p><strong>qmldir</strong></p>
  
  <pre><code>singleton Config 1.0 Config.qml
  </code></pre>
  
  <p>When I want to import my custom module as<code>MyModule</code> in the <code>main.qml</code> file.</p>
  
  <pre><code>import "???" as MyModule
  </code></pre>
  
  <p>How can I do that? Does someone have a suggestion?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p><strong>qrc file</strong></p>
  
  <pre><code>&lt;RCC&gt;
  &lt;qresource prefix="/"&gt;
      &lt;file&gt;main.qml&lt;/file&gt;
  &lt;/qresource&gt;
  &lt;qresource prefix="/myPrefix"&gt;
  &lt;file&gt;Config/qmldir&lt;/file&gt;
  &lt;file&gt;Config/Config.qml&lt;/file&gt;
  &lt;/qresource&gt;
  </code></pre>
  
  <p></p>