Reading the source code @8:58, instead of the lines 68-72, a connect (or debounce) method in KDSignalDebouncer to be used like bouncer->connect(ui->lineEdit, &QLineEdit::textChanged, filter, [filter, this] { filter->setFilterText(ui->lineEdit->text()); }, 500); would be a good improvement, I guess
@blackiedkАй бұрын
That would indeed be an option, but would likely make the code harder to read. For details on this point, see the Qt3 versus Qt4 slider example in kzbin.info/www/bejne/e3jLeZ-GecqsrMk