hi every body

i am facing problem with the combo Box ... i want to change its current value on text edite at line Edit ... so i used this slot :

Qt Code:
  1. void CheckoutDialog::on_empNoEdit_textChanged(QString number)
  2. {
  3.  
  4. int i=query.record().indexOf(number);
  5.  
  6.  
  7. ui->empNameBox->setCurrentIndex(i);
  8.  
  9. }
To copy to clipboard, switch view to plain text mode 


at execute the combo box do nothing

could any one tel me what i am missing ?

great thanx