The keystroke goes to the focused widget Key. If it returns false, it goes to its parent Key and vice versa. If it reaches top-level window and it also returns false, HotKey broadcast is performed recursively from top to down, until some widget returns true (or all are traversed).
Therefore, in LineEdit, Tab keystroke is used and true is returned...