I'm trying to use QCompleter to get something like in the image. The code seems pretty simple, but in my dialog nothing happens.
Is there some problem in this code?
The dialog is created using Qt Designer.
import sys from PyQt5.QtWidgets import QAction, QFileDialog, QApplication, QWidget, QVBoxLayout, QLineEdit, QCompleter # def run(self): if self.first_start == True: self.first_start = False self.dlg = SelectFeatureDialog() strList = ['Python', 'PyQt5', 'Qt', 'QML'] completer = QCompleter(strList) self.dlg.lineEdit.setCompleter(completer) self.dlg.show()
Are there some errors in these settings?
I'm very stupid, the completer works but I was trying with the lowercase, while in my string's list the first letter is always uppercase.
Now I'm wondering how to ignore the case?