Is there a way to combine textChanged and editingFinished for QLineEdit? The problem is that editingFinished is emitted even if I only move the cursor away from QLineEdit without any changes. Whereas I want to emit a signal only when any changes were performed after I finished editing.
I can imagine only to store somewhere the current text, compare the entered text with it and do something only if it differs. But I wonder if there is any solution purely based on signals handling.
EDIT: At the end I had to store the current text and compare with the new text and not follow the proposed solution. I realized that in my application “1.2345” and “1.23” would be the same text but nevertheless I have to update some other values in this case and so on. I really appreciate detailed answer and comments by @Avaris and @ekhumoro, and will accept it since it seems to solve originally posted problem.
Edit
For capturing manual edits:
Edit 2
For capturing all edits (programmatic and manual):
Edit 3
For capturing only text changes by the user: