Need some help.
I have a QCompleter with some QStringList, for example:
QstringList list;
list << "world" << "mouse" << "user";
It works fine when user searches in QLineEdit for a word from this list, but I want to show a changed result. For example: user types world and it shows hello world in completer popup.
Is it possible? If yes - how?
First you must place the data in a model, in this case you will use
QStandardItemModel, on the other hand to modify the popup you must establish a new delegate, and finally so that when you select an item to be shown in theQLineEdityou must override thepathFromIndex()method :