# include <QCompleter>
# include <QStringList>
QStringList list;
list<<"hello"<<"How are you"<<" hehe";//相当于cin
QCompleter *com = new QCompleter(list
Qt学习 文本框输入有提示
最新推荐文章于 2024-04-27 22:04:16 发布
# include <QCompleter>
# include <QStringList>
QStringList list;
list<<"hello"<<"How are you"<<" hehe";//相当于cin
QCompleter *com = new QCompleter(list