QCompleter set padding issue
-
Hi all,
Here is my code,
@QCompleter *complete = new QCompleter(QStringList);
complete->setCaseSensitivity(Qt::CaseInsensitive);
complete->setCompletionMode(QCompleter::PopupCompletion);
complete->setMaxVisibleItems(1);complete->popup()->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); QFont font( "Newyork", 16); complete->popup()->setFont(font);
complete->popup()->setStyleSheet("background-color:#0000FF;color:white;padding:5px;");
ui->lineedit->setCompleter(complete);@in here if i enter the lineedit means Qcompleter linedit popup is displayed,,If i click the padding area means Qcompleter is not working,,but if i click over the font means Qcompleter is working,,what is the problem in padding area,,Please give me a solution,,thanks
-
Hi,
Just an educated guess but I would say that the padding is not a "sensible" area