Answers for "python qt autocomplete"

0

python qt autocomplete

def autoComplete(line, list):
    completer = QCompleter()
    line.setCompleter(completer)

    model = QStringListModel()
    model.setStringList(list)
    completer.setModel(model)
    line.show()

autoComplete(linedit, list)
Posted by: Guest on November-01-2020

Browse Popular Code Answers by Language