QCompleter not working in Qt 5.0.0
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.
wordList << "alpha" << "omega" << "omicron" << "zeta";
QLineEdit *lineEdit = new QLineEdit(this);
QCompleter *completer = new QCompleter(wordList, this);
Thanks & Regards
Might be a bug. Please consider "reporting":https://qt-project.org/wiki/ReportingBugsInQt it.
Thanks for your reply sierdzio,
I have filed a bug report for this. please check "Bug - QCompleter not working in Qt 5.0":https://bugreports.qt-project.org/browse/QTBUG-30549