WIntValidator vs WDoubleValidator with WLineEdit
I can see that while the former doesn't allow for wrong characters (like letters and other symbols), the latter does.
Is this intentional or is there any other reason?
To be more precise, a
WIntValidator doesn't allow the user to type in any illegal character.
So you cannot type letters and any symbol like % or &.
WDoubleValidator you can. Of course the validation fails in such a case.
None knows? Not even at emweb?
This is because WDoubleValidator does not reimplement inputFilter(), but indeed it could and should.
There could be a pitfall in doing that.
Just like with
WDateEdit. It's the localization.
For example, in Italy we use the comma (,) for the decimal point, while a lot of countries use the period (.) .
inputFilter should follow the used locale, as the
WDateEdit should, but doesn't.
For the former you can simply accept both and then let the use do the proper conversion, if needed.
But for the latter it's a different story.
See here !