QCompleter in my QGIS plugin. The code below works well, but I'd love to make it more sophisticated. In this example I have some strings that are composed of some words, for example
"How to use QCompleter". In this moment, to see the completer I need to start writing by the first word ("How"). I'm wondering if there's a way to see the completer also writing in the LineEdit any word in the string, for example "to" or "use".
strList = ["Prove PyQt5", "How to use Qcompleter", "I love StackExchange"] completer = QCompleter() completer.setCaseSensitivity(0) dlg.lineEdit.setCompleter(completer) model = QStringListModel() model.setStringList(strList) completer.setModel(model)