title: Qt - QFile not opening a .qss file
body: <p>I'm trying to use an external stylesheet for my project and I'm having trouble opening it using the QFile class. I've imported it into the .qrc file, a portion of it looks like this:</p>
  
  <pre><code>  &lt;qresource prefix="stylesheets"&gt;
      &lt;file&gt;Resources/Stylesheet.qss&lt;/file&gt;
    &lt;/qresource&gt;
  </code></pre>
  
  <p>This is how I am opening and using the file:</p>
  
  <pre><code>QFile stylesheet(":/stylesheets/Resources/Stylesheet.qss");
  if (stylesheet.open(QIODevice::ReadOnly | QIODevice::Text))
  {
      newGameDialog.setStyleSheet(stylesheet.readAll());
      stylesheet.close();
  }
  </code></pre>
  
  <p>What could be wrong with this? I am using Visual Studio 2013 with the latest Qt and the VS Qt Add-in. I've also set the project to support QML in "Qt Project Settings".
  The .qss file looks like this (it works if set directly as a QString). I'm not sure if the "import" line is needed:</p>
  
  <pre><code>import Qt 5.3.1
  
  QDialog
  {
      background-color: 'white';
  }
  </code></pre>
  
  <p>It is reading it fine, but the style is not applying. Here it is in debug mode:
  <img src="https://i.stack.imgur.com/LUSSv.png" alt="debug"></p>