Hi..
I have to set the auto completion for the QLineEdit, so i tried using QCompleter. The code shown below works fine in Qt 4.8.4.
But when i try the same code in Qt 5.0.0 (32 bit), it just throws me an error.
QLineEdit:: cannot convert parameter 1 from QCompleter to QCompleterExample.
why is it not working with Qt 5.0.0.? Should i change anything in the code for working with Qt 5.0.0? Please post your suggestions.
QStringList wordList;
wordList << "alpha" << "omega" << "omicron" << "zeta";
QLineEdit *lineEdit = new QLineEdit(this);
QCompleter *completer = new QCompleter(wordList, this);
completer->setCaseSensitivity(Qt::CaseInsensitive);
lineEdit->setCompleter(completer);
Thanks & Regards
↧