摘要: 1.QLineEdit类的setValidator方法设置正则表达式限制内容输入 事例: 1 ui->lineEdit_in_num->setValidator(new QRegExpValidator(QRegExp("[.0-9]+$"))); 2.正则表达式介绍 2.1 单个字符匹配,匹配字符 阅读全文
posted @ 2023-07-30 22:57 稚终KINO 阅读(31) 评论(0) 推荐(0)