View Single Post
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#149
Originally Posted by Diph View Post
Maybe you can use void QLineEdit::editingFinished () signal.

This signal is emitted when the Return or Enter key is pressed or the line edit loses focus. Note that if there is a validator() or inputMask() set on the line edit and enter/return is pressed, the editingFinished() signal will only be emitted if the input follows the inputMask() and the validator() returns QValidator::Acceptable.

The input is valid if the signal is emitted.
That's the case... signal isn't emitted if I fill in only three digits (or four, or five), but on the screen I see the three digits. I want it to revert back to the value that was in the box before I started editing it and didn't complete the input.
__________________
If you're rich and you think I deserve a cold beer, you may donate one or two :-P

80's style stadium rock is back - FIRENOTE
Hi-Octane heavy metal - FORCE MAJEURE