QRegExp rx("[0-9.0-9]*"); //只能输入数字和小数点
QRegExpValidator* pReg = new QRegExpValidator(rx, this);
Qt正则表达式只能显示数字和小数点
最新推荐文章于 2024-04-24 21:48:30 发布
QRegExp rx("[0-9.0-9]*"); //只能输入数字和小数点
QRegExpValidator* pReg = new QRegExpValidator(rx, this);