QLineEdit *lineEditIP = new QLineEdit("192.168.147.200", this); QRegExpValidator *reg = new QRegExpValidator(GW::RegExp::ipRegExp(), this)