# include <QCompleter>
# include <QStringList>
QStringList list;
list<<"hello"<<"How are you"<<" hehe";//相当于cin
QCompleter *com = new QCompleter(list
Qt学习 文本框输入有提示
最新推荐文章于 2024-03-10 09:24:23 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
# include <QCompleter>
# include <QStringList>
QStringList list;
list<<"hello"<<"How are you"<<" hehe";//相当于cin
QCompleter *com = new QCompleter(list