View Single Post
Posts: 180 | Thanked: 76 times | Joined on May 2010
#148
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.