[SOLVED]QValidator
-
I´m trying to implement function fixup() after subclass QValidator, but it´s not working.
Can anyone help me?
Code:
@
void email::fixup(QString &input) const
{
if(input != input.toLower())
input = input.toLower();
}
@ -
Can you please describe what the expected and the actual behavior is?
-
Sure!
I´d expect that if an upper case character is inserted, it should become lower case. But at my QComboBox I can insert upper case characters and nothing happens.P.S.: I implemented the validate() function and it works.
Thanks.
-
I called fixup function from validate and it works.