title: How to use qml files specified in a different qrc resource file?
body: <p>In all the examples I've seen, all qml files in the project are packed inside a single "qml.qrc", sometimes under different prefixes or in different directories.</p>
  
  <p>To access items from a different qml file, one just has to import them.</p>
  
  <ul>
  <li><p>If the files are under the same prefix, but in a different physical directory, then it's <code>import "dirname"</code></p></li>
  <li><p>If the files are under a different prefix, it's <code>import "qrc:/prefixname/dirname"</code></p></li>
  </ul>
  
  <p>However, what to do if the item in question is in a different qrc file?</p>
  
  <p>The <a href="http://doc.qt.io/qt-5/resources.html" rel="nofollow">documentation</a> doesn't mention this. Is there a good place where everything regarding <code>import</code> is presented in detail? How to import a single file, how to import whole directories, what if the files are in different folders, different prefixes, different resources, etc. I couldn't find one.</p>
  
  <p>If I use loaders, I can specify the target as <code>source:"qrc:///qrcname/filename"</code>. Is this the only way?</p>
  
  <p>What I would like to do is to separate styles into a different resource file, to not clutter my main "qml.qrc".</p>
  
  <p>So I would have </p>
  
  <pre><code>Button
  {
      style: MyButtonStyle{}
      //...
  }
  </code></pre>
  
  <p>in my main qml, and <code>MyButtonStyle.qml</code> in a different qrc file. Is that possible, or must the style be specified in the same qrc file?</p>