1.在LineEdit中输入有提示:包含头文件#include<QCompleter>
部分代码:
QStringList list; list<<"hello"<<"hi"; QCompleter *com=new QCompleter(list,this); com->setCaseSensitivity(Qt::CaseInsensitive); ui->lineEdit->setCompleter(com);
1.在LineEdit中输入有提示:包含头文件#include<QCompleter>
部分代码:
QStringList list; list<<"hello"<<"hi"; QCompleter *com=new QCompleter(list,this); com->setCaseSensitivity(Qt::CaseInsensitive); ui->lineEdit->setCompleter(com);