I configured a QLineEdit with a list of names. I can get the completer to work correctly when using QCompleter::UnfilteredPopupCompletion, i.e. the activated(QModelIndex indx) provides me with the correct index with the indx.row() method. However, if I change the CompletionMode, to QCompleter::PopupCompletion then the row() method doesn't provide the 'absolute' index into my list, but rather a 'relative' (for lack of better description) as it indicates the index of the current possible matches. How do I get the same index as in the case of UnfilteredPopupCompletion when typing the same name?
Bookmarks