qt qlineedit只输入数字

lineEdit->setValidator(new QRegExpValidator(QRegExp("[0-9]+$")));

posted on 2013-08-19 08:41  百里孤坟  阅读(2706)  评论(0编辑  收藏  举报

导航