Hi,
how can i set a range (0.24 – 2.06) to a QLineEdit with a QRegExp?
I try this
Code:
Thanks in advance
Marco812
Printable View
Hi,
how can i set a range (0.24 – 2.06) to a QLineEdit with a QRegExp?
I try this
Code:
Thanks in advance
Marco812
Try:but maybe QDoubleSpinBox will be more usefull? There is also QDoubleValidator.Code:
"0[.,]2[4-9]|0[.,][3-9]\\d|1[.,]\\d\\d|2.0[0-6]"
Hi,
thank you for the tip, but i think in this case is better to use QRegExp as a QDoubleValidator. Your QRegExp is OK, thank you.
Greetings
Marco812
Hi,
sorry i have found an error. I can put values like "2100" or "23" or "24".... I think that's OK:
Code:
"0[.,]2[4-9]|0[.,][3-9]\\d|1[.,]\\d\\d|2[.,]0[0-6]"
Greetings,
Marco812