I use the editingFinished
signal to validate/correct/cache some value. When a button is pressed, I then expect the value in the field to be correct.
Now to make my work faster, I connect returnPressed
to call what the button press would have called. The behavior I expect is this:
editingFinished
is emitted, so the application knows the field is editedreturnPressed
is emitted, to fire off the "form"'s action
However, I see that the slot connected to returnPressed
is actually processed first.
Now, I know that I can connect returnPressed
to another slot that calls the editingFinished
slot first, and then performs the action, to work around this, but my question is, why is the behavior like this? Or is that the order is unspecified and it just happens to be in this order for me? In the former case, can I change the order?