Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.3.2
-
None
Description
It would be a nice feature to have a premade QValidator that specializes in IP Addresses.
It currently can be done with the QRegExpValidator and something like :
le = new QLineEdit();
QRegExp rx( "((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])
.)
(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])" );
le->setValidator(new QRegExpValidator(rx,this));
But an optimized class would be nice.