title: QPSQL driver not loaded
body: <p>I know that there are few topics on the Internet about <code>QPSQL driver not loaded</code> problem but none of the solutions have helped me.</p>
  
  <p>Let's start from the beggining. This is what I'm using:</p>
  
  <pre><code>Windows 7 x64
  PostgreSQL 9.3
  QtCreator 2.4.1
  Based on Qt 4.7.4 (32 bit)
  </code></pre>
  
  <p>First of all I've tried to use tutorial from <a href="http://qt-project.org/doc/qt-4.8/sql-driver.html#qpsql" rel="nofollow">http://qt-project.org/doc/qt-4.8/sql-driver.html#qpsql</a> . The problem with that solution is that <code>cd %QTDIR%</code> command result is changing my working directory to <code>C:\QtSDK\Desktop\Qt\4.7.4\mingw</code> which has not any <code>src</code> directory but fortunately has got <code>plugins\sqldrivers</code>. Unfortunately there is no folder <code>pqsl</code>. Even if I ignore that problem and skip into next step - <code>qmake "INCLUDEPATH+=C:\psql\include" "LIBS+=C:\psql\lib\ms\libpq.lib" psql.pro</code> it shows me that it <code>cannot find file psql.pro</code> and there is no <code>psql.pro</code> file in my whole Qt directory. I've decided to leave that solution and to find another one.</p>
  
  <p>Somewhere in the Web I've found that I need to write those lines into my <code>.pro</code> file:</p>
  
  <pre><code>INCLUDEPATH += $$quote(C:/Program Files/PostgreSQL/9.3/include)
  LIBS += -L$$quote(C:/Program Files/PostgreSQL/9.3/lib)
  </code></pre>
  
  <p>I've done that. But the <code>driver not loaded</code> problem is still appearing.</p>
  
  <p>What should I do. Am I missing something? </p>
  
  <p>If it helps after running </p>
  
  <pre><code>qDebug() &lt;&lt; QSqlDatabase::drivers();
  </code></pre>
  
  <p>command it displays only <code>("QSQLITE")</code></p>
  
  <p>P.S. I hope that my problem is understandable - english is not my native language.</p>