title: QSQLITE driver not loaded - where to put qt database driver plugins
body: <p>I am using VS2008 &amp; QT plugin to make my application. After making package when I am running the application I am getting error :</p>
  
  <pre><code>QSqlDatabase: QSQLITE driver not loaded
  QSqlDatabase: available drivers: 
  Database error: QSqlError(-1, "Driver not loaded", "Driver not loaded") 
  QSqlError(-1, "Driver not loaded", "Driver not loaded") 
  </code></pre>
  
  <p>I have added the qsqlite.dll to my package &amp; also changed the libpath. But still I am getting this error. How to solve this.</p>
  
  <p>My Code::</p>
  
  <pre><code>  QStringList str;
  str.append(".");
  a.setLibraryPaths(str);
  a.addLibraryPath("./sqldrivers/");
  
  //a.addLibraryPath(".");
  
  qDebug()&lt;&lt;"my library path : "&lt;&lt;a.libraryPaths();
  
  QLibrary sqlib("qsqlite4.dll");
  sqlib.load();
  qDebug()&lt;&lt;"my library loaded"&lt;&lt;sqlib.isLoaded();
  
  QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
  qDebug()&lt;&lt;"Database error:"&lt;&lt;db.lastError();
  
  db.setDatabaseName("vimukti1234");
  qDebug()&lt;&lt; db.lastError();
  
   db.open();
  QSqlQuery query;
  </code></pre>