在使用Qt的QLineEdit设置了字符限制之后,出现无法删除编辑框里面文本的现象了。
QRegExp rxInt("-?\\d{1,3}.?\\d{1,2}");
QRegExp rxDouble("-?\\d{1,3}.?\\d{1,2}");
validatorInt = new QRegExpValidator(rxInt,this);
validatorDouble =
在使用Qt的QLineEdit设置了字符限制之后,出现无法删除编辑框里面文本的现象了。
QRegExp rxInt("-?\\d{1,3}.?\\d{1,2}");
QRegExp rxDouble("-?\\d{1,3}.?\\d{1,2}");
validatorInt = new QRegExpValidator(rxInt,this);
validatorDouble =