setInputMask("000.000.000.000;_");
m_leIP->setValidator(new QIntValidator(0, 255, m_leIP);
m_leStrIP->setInputMask("000.000.000.000;0");QRegExp rx( "\\b(([01]?\\d?\\d|2[0-4]\\d|25[0-5])\\.){3}([01]?\\d?\\d|2[0-4]\\d|25[0-5])\\b" );QRegExpValidator *validator = new QRegExpValidator(QRegExp(rx), m_leStrIP);m_leStrIP->setValidator(validator);
m_leStrIP->text();