title: Qt background-image shows in designer but not in release
body: <p>I have a simple Qt GUI application and I am having trouble setting the image background. The background image displays properly in form editor/designer but when I run the application there is no background image.</p>
  
  <p>Resource file:</p>
  
  <pre><code>&lt;RCC&gt;
      &lt;qresource prefix="/"&gt;
          &lt;file&gt;eb_back_small.png&lt;/file&gt;
          &lt;file&gt;favicon.ico&lt;/file&gt;
          &lt;file&gt;background.jpg&lt;/file&gt;
      &lt;/qresource&gt;
  &lt;/RCC&gt;
  </code></pre>
  
  <p>This is how it looks like in editor:
  <img src="https://i.stack.imgur.com/v5Df7.png" alt="Form editor"></p>
  
  <p>Style sheet for centralWidget (background.jpg is a simple 500x350 red image):</p>
  
  <pre><code>#centralWidget {    
      background-image: url(:/background.jpg);
  }
  </code></pre>
  
  <p>Style sheet for widget (just to see if background-color works because I assume something is not right with my resources):</p>
  
  <pre><code>#widget {
      background-color: rgb(0, 170, 0);
  }
  </code></pre>
  
  <p>And this is the final result when I run the app:
  <img src="https://i.stack.imgur.com/LFxlJ.png" alt="release"></p>
  
  <p>I assume somehow the build cannot access the background image resource but I have no idea why. I also tried to apply general background-image property in Window0 style sheet but it does not change anything (for example, if main window was overwriting the background but it does not seem to be the case).</p>