【QT】Qt正则表达式的使用:使用QRegExp来限制QLineEdit的输入格式

QLineEdit中使用QRegExp来限制输入格式,下面以IP输入框为例
	QLineEdit *lineEditIP  = new QLineEdit("192.168.147.200", this);
    QRegExpValidator *reg = new QRegExpValidator(GW::RegExp::ipRegExp(), this)

猜你喜欢

转载自blog.csdn.net/u010168781/article/details/118736710