matheww
20th June 2007, 05:02
Hi all..
I find this a bit strange, i have a (number of) QLineEdit's which have a QValidator set (I have subclassed it to lookup a database). If the QValidator returns invalid or Intermediate the user is still able to "Tab" out of the QLineEdit, I really need to stop them doing this - really I would have expected that if the Validator is not valid that the user has to keep edit the field until they input a correct value! (isnt that what validation is all about)..
Any ideas on howto stop a user from leaving the edit until they have entered something valid? I have not yet looked at sub-classing qlineedit, but may have to (dont want to as I have multiple of these on dialogs designed with designer)..
:eek:
I find this a bit strange, i have a (number of) QLineEdit's which have a QValidator set (I have subclassed it to lookup a database). If the QValidator returns invalid or Intermediate the user is still able to "Tab" out of the QLineEdit, I really need to stop them doing this - really I would have expected that if the Validator is not valid that the user has to keep edit the field until they input a correct value! (isnt that what validation is all about)..
Any ideas on howto stop a user from leaving the edit until they have entered something valid? I have not yet looked at sub-classing qlineedit, but may have to (dont want to as I have multiple of these on dialogs designed with designer)..
:eek: