title: App connection with Sqlite in my app developed in qt
body: <p>In my app in QT5 I have this code</p>
  
  <pre><code>QString sql = "Select * from table";
  QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
  db.setDatabaseName("./au.sqlite");
  db.open();
  QSqlQuery query(sql);
  query.exec();
  </code></pre>
  
  <p>But when I get the results only get one result, the select query only give me one result and I don't know how fix this. If I add <code>query.next()</code> in a while loop I only get one iteration.</p>