Hi,
Assume there is a lineEdit With a completer that a stringList is added to the completer. While typing in the lineEdite, some words appear that by clicking on one of them, I need the index of that word in the stringList be returned. is there any signal for this?

for example:
Qt Code:
  1. QWidget wdg;
  2.  
  3. QStringList wordList;
  4. wordList << "yawalpha" << "omeyawga" << "omicyaron" << "zetaYAW";
  5.  
  6. QLineEdit *lineEdit = new QLineEdit(&wdg);
  7. QCompleter *completer = new QCompleter(wordList,&wdg);
  8.  
  9. completer->setCaseSensitivity(Qt::CaseInsensitive);
  10. completer->setFilterMode(Qt::MatchContains);
  11. lineEdit->setCompleter(completer);//for example when i type "omicyaron" in the lineEdit and click on that in the completer, it emits a signal with value of 2 (index of position of "omicyaron" in the wordList )
  12.  
  13. wdg.show();
To copy to clipboard, switch view to plain text mode 

thanks for any help