title: qt sqlite select statement
body: <p>I decided to test sqlite db for my Qt application.</p>
  
  <p>I have created the sqlite db file with the proper statements (create table etc. and Inserted some rows of data).
  My problem is that when I execute a select statement I don't get any records.</p>
  
  <p>This is the code I use:</p>
  
  <pre><code>qq.sprintf("SELECT * from descriptors WHERE descriptors.id=%d ",idx);
  query.exec(qq);
  if( query.isSelect() ){
      while (query.next()){
  
      int fff = query.value(0).toInt();
  </code></pre>
  
  <p>}}</p>
  
  <p>The problem is that I never get inside the while loop. query.next() doesn't seem to work.</p>
  
  <p>any hints?
  thanks in advance,
  Thodoris</p>
  
  <p>p.s. I forgot to write my configuration so: Qt 4.7.3, windows 7, visual studio 2008 </p>