You can use this simple code if you want to check it out
Qt Code:
  1. #include <QtGui/QApplication>
  2. #include <QComboBox>
  3. #include <QStandardItemModel>
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. QApplication a(argc, argv);
  8.  
  9. model->appendRow(new QStandardItem(QString("item1")));
  10. model->appendRow(new QStandardItem(QString("item2")));
  11. model->appendRow(new QStandardItem(QString("item3")));
  12. model->appendRow(new QStandardItem(QString("item4")));
  13.  
  14.  
  15. QComboBox *combo = new QComboBox();
  16. combo->setModel(model);
  17. combo->setEditable(true);
  18. combo->setInsertPolicy(QComboBox::NoInsert);
  19. combo->setMinimumWidth(100);
  20.  
  21. combo->show();
  22.  
  23. return a.exec();
  24. }
To copy to clipboard, switch view to plain text mode 

To reproduce:
1.) Start this simple App and select item3 for example by moving down arrow key.
2.) Select full text "item3" in the combo either by double click or with shift and arrow keys.
3.) Press Enter.
You will see that after pressing Enter combo box is moving to previous set index, which in this case will be "item1".


Can I avoid this behaviour?