Thanks d_stranz,
I need it takes no space like QComboBox window (or google suggested window while searching). Is there any Widget like this? If no, then I must use a QComboBox (with no border). But in this way I need window of QComboBox always be opened. How can it be opened always
Added after 32 minutes:
I found that: QCompleter
wordList << "alpha" << "omega" << "omicron" << "zeta";
completer->setCaseSensitivity(Qt::CaseInsensitive);
completer->setFilterMode(Qt::MatchContains);
lineEdit->setCompleter(completer);
wdg.show();
QWidget wdg;
QStringList wordList;
wordList << "alpha" << "omega" << "omicron" << "zeta";
QLineEdit *lineEdit = new QLineEdit(&wdg);
QCompleter *completer = new QCompleter(wordList,&wdg);
completer->setCaseSensitivity(Qt::CaseInsensitive);
completer->setFilterMode(Qt::MatchContains);
lineEdit->setCompleter(completer);
wdg.show();
To copy to clipboard, switch view to plain text mode
Bookmarks