那针对我的语句里,x是什么呢?
GoToCellDialog::GoToCellDialog(QWidget *parent)
: QDialog(parent)
{
setupUi(this);
QRegExp regExp("[A-Za-z][1-9][0-9]{0,2}");
lineEdit->setValidator(new QRegExpValidator(regExp, this));
connect(okButton, SIGNAL(clicked()), this, SLOT(accept()));
connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()));
}
void GoToCellDialog::on_lineEdit_textChanged()
{
okButton->setEnabled(lineEdit->hasAcceptableInput());
}
运行后在空格处输入第一位是字母(大小都可),第二位数字是1-9,第三位数字是0-9,我试了第四随便一个数字即可,其让他方式无法输入,本人刚学,还是不太理解{}的意思,谁能针对我这个程序讲讲?