C++ (Qt)void QWidget::focusInEvent(QFocusEvent * event) [virtual protected]void QWidget::focusOutEvent(QFocusEvent * event) [virtual protected]
C++ (Qt)QLineEdit *someLineEdit = ... QTimer *changeTimer = new QTimer(someLineEdit);changeTimer.setInterval(500);changeTimer.setSingleShot(true); QObject::connect(someLineEdit, &QLineEdit::textChanged, [changeTimer] () { changeTimer->start(); });QObject::connect(changeTimer, &QTimer::timeout, [this, someLineEdit] () { emit this->aboutTextChanged(someLineEdit->text()); });
C++ (Qt)void QLineEdit::editingFinished() [signal]