What is wrong with this code:
Qt Code:
  1. void CCustomerUpdateDialog::slotZipcodeChanged(int iIndex)
  2. {
  3. QSqlQuery retrieveCityNameQuery("SELECT * FROM kraj k WHERE k.POSTNA_STEVILKA="+m_pZipcode->currentText());
  4. QSqlError error=retrieveCityNameQuery.lastError();
  5. if(error.type()!=QSqlError::NoError)
  6. {
  7. qDebug() << retrieveCityNameQuery.lastError();
  8. } else
  9. {
  10. m_pCity->setText(retrieveCityNameQuery.value(1).toString());
  11. }
  12. };
To copy to clipboard, switch view to plain text mode 

I select a zip code of an city and in the QLineEdit should provide then after click the name of city with selected Zip Code. But, sql i generated ok (double check), QLineEdity still stays empty! Why?