QRegExpvalidator的问题~
刚用qt按书本上说写了个小程序,这两句话却出现了问题:
QRegExp regExp("[A-Za-z][1-9][0-9]{0,2}");
lineEdit->setValidator(new QRegExpvalidator(regExp,this));
提示是:QRegExpvalidator is not a type name,如果编译的话错误是:error: expected type-specifier before ‘QRegExpvalidator’
请问是什么原因?该怎么改进?十分感谢!