What is the signal for when a widget loses focus?
There’s no signal but if you want to know when your widget has lost focus, override and reimplement void QWidget::focusOutEvent(QFocusEvent* event) in your widget. It will be called whenever your widget has lost focus. To give focus to a widget, use QWidget::setFocus(Qt::FocusReason). To validate input in a QLineEdit or QComboBox you can subclass QValidator and … Read more