QRegExp regx("^[0-9]$|^[0-9]{2}$|^[1][0-9]{2}$|^[2][0-4][0-9]$|^[2][5][0-5]$");
ui.FreLine->setValidator(new QRegExpValidator(regx));

posted on 2022-02-21 10:20  青春凹陷  阅读(602)  评论(0)    收藏  举报