title: parameter count mismatch sqlite and qt error
body: <p>i have error with sqlite query </p>
  
  <p>i don't know where is the problem the problem exactly </p>
  
  <p>i have make a default connexion in mainwindow.cpp </p>
  
  <p>and i just get the default connexion and query the data base, but isn't works </p>
  
  <p>her is my code so far </p>
  
  <pre><code>QSqlDatabase db = QSqlDatabase::database() ;
  
  QSqlQuery query ;
  
  query.prepare("select seq from sqlite_sequence where name= ? ");
  
  query.addBindValue("articles");
  
  if(!query.exec())
  {
      QMessageBox::critical(this,"Inventoria solti",query.lastError().text());
      return ;
  }
  
  while (query.next())
  {
      ui-&gt;lineEdit-&gt;setText(query.value(0).toString());
  }
  </code></pre>
  
  <p>her is the default connexion in mainwindow.cpp</p>
  
  <pre><code>m_db = new QSqlDatabase;
  // Base de données traitement
  *m_db = QSqlDatabase::addDatabase("QSQLITE") ;
  m_db-&gt;setHostName("localhost");
  m_db-&gt;setDatabaseName("E:/apprendreQt/gestionstock6/database/inventaire.db");
  m_db-&gt;setPassword("");
  m_db-&gt;setUserName("");
  if(!m_db-&gt;open())
      QMessageBox::critical(this,"erreur connecting",m_db-&gt;lastError().text());
  </code></pre>