Marco812
3rd August 2006, 17:41
Hi,
how can i set a range (0.24 – 2.06) to a QLineEdit with a QRegExp?
I try this
QRegExp regExpRange("(?:[0-2]24)(?:[.,]\\d\\d?)?|2(?:[.,]06?)?"); //Range 0.25 – 2.05
myQLineEdit->setValidator(new QRegExpValidator(regExpRange, this));
Thanks in advance
Marco812
how can i set a range (0.24 – 2.06) to a QLineEdit with a QRegExp?
I try this
QRegExp regExpRange("(?:[0-2]24)(?:[.,]\\d\\d?)?|2(?:[.,]06?)?"); //Range 0.25 – 2.05
myQLineEdit->setValidator(new QRegExpValidator(regExpRange, this));
Thanks in advance
Marco812