Is there a real difference ?
-
Both slots run when "enter" is pressed on empty lineEdit widget, as they should according to the document.
I am curious if somebody can come up with a reason for using one or the other.No, I do not have an issue or problem with it.
void Form_SYSTEM::on_lineEdit_70_editingFinished() { qDebug() << ("on_lineEdit_70_editingFinished()"); // << currentText; } void Form_SYSTEM::on_lineEdit_70_returnPressed() { qDebug() << ("on_lineEdit_70_returnPressed()"); // << currentText; }
-
-
Both slots run when "enter" is pressed on empty lineEdit widget, as they should according to the document.
I am curious if somebody can come up with a reason for using one or the other.No, I do not have an issue or problem with it.
void Form_SYSTEM::on_lineEdit_70_editingFinished() { qDebug() << ("on_lineEdit_70_editingFinished()"); // << currentText; } void Form_SYSTEM::on_lineEdit_70_returnPressed() { qDebug() << ("on_lineEdit_70_returnPressed()"); // << currentText; }
-
@AnneRanch
If you press any key except
Return
returnPressed
is not emitted, buteditingFinished
is, when you stop entering input to your lineEdit.@Pl45m4 How is it detested ? Perhaps "loosing focus " ? Easy to tets in my app - will do it.