title: Select from SQLite with Qt
body: <p>I try to deal with SQLite database on Qt 4.5.3 on Linux. I've already created the databsae.</p>
  
  <p>Then, I try to perform select on Qt:</p>
  
  <pre><code>db = QSqlDatabase::addDatabase("QSQLITE");
  db.setDatabaseName(filename); // Here is FULL path to the database. I've checked it twice :)
  bool ok = db.open();
  qDebug() &lt;&lt; db.tables();
  
  QSqlQuery query;
  query.exec("select * from lessons");
  qDebug() &lt;&lt; query.size();
  qDebug() &lt;&lt; query.isSelect();
  qDebug() &lt;&lt; query.isValid();
  </code></pre>
  
  <p>But debug console says:</p>
  
  <pre><code>("lessons", "weeklessons", "weeks") 
  -1 
  true 
  false 
  </code></pre>
  
  <p>Why it's select nothing? What I have doing wrong?</p>