Copy link
@elpaso

elpaso Nov 4, 2020

Contributor

@SebastienPeillet

I don't understand how the validation is supposed to work with decimals,
say I want to use the validator for integers, I would set decimals = 0 but the regexp checks for the exponent so this would be valid and the test fails (assume en locale):

QCOMPARE( validator.toDouble( val ), 1.23 );
QCOMPARE( validator.validate( val ), QValidator::State::Invalid );

Can you please clarify?