title: QLibraryInfo doesn't seem to load qt.conf
body: <p>I jsut installed Qt 4.7.2 and I'm trying to use the <code>QLibraryInfo</code> class. My problem is that <code>QLibraryInfo::location(QLibraryInfo::PrefixPath)</code> always returns <code>C:\work3\qt-4.7-vs2010-x86</code> which doesn't exist on my generation machine (should be <code>C:\Qt\qt-4.7.2</code>).</p>
  
  <p>According to <a href="http://doc.qt.nokia.com/stable/qt-conf.html" rel="nofollow">the documentation</a> I tried to create a <code>qt.conf</code> file  alongside my program, but the problem still remains. Here's its content:</p>
  
  <pre><code>[Paths]
  Prefix=C:/Qt/qt-4.7.2/
  </code></pre>
  
  <p>For now I used a symlink to bypass the issue, but I'd like to know if there's a proper solution.
  Thanks.</p>
  
  <p><strong>EDIT</strong>
  Here's the program using the <code>QLibraryInfo</code>:</p>
  
  <pre><code>int main(int argc, char ** argv)
  {
      QCoreApplication app(argc, argv); //&lt; added after Piotr's suggestion
  
      QFile outf("qtdirs.out");
  
      if (!outf.open(QIODevice::WriteOnly|QIODevice::Truncate|QIODevice::Text))
          return 1;
  
      QTextStream out(&amp;outf);
  
      out &lt;&lt; QLibraryInfo::location(QLibraryInfo::PrefixPath) &lt;&lt; '\n';
      out &lt;&lt; QLibraryInfo::location(QLibraryInfo::HeadersPath) &lt;&lt; '\n';
  
  ...
  }
  </code></pre>