I am trying to make it so that whenever user types 1 letter in LineEdit (Max they can type is 1 character) they automatically switch to write in the LineEdit next to it.
Emitted when appending text that overflows the max_length. The appended text is truncated to fit max_length, and the part that couldn’t fit is passed as the rejected_substring argument.
then when it fires you know they’ve exceeded the one-character limit and you can then switch focus to the next lineedit.
wouldn’t it only work if the user types more than 1 charachter? I’m want it to switch immediately after the character is typed. For example whenever they write X i want LineEdit to be switched instantly.
You can also just hook into the text_changed and once the new_text reaches the desired length (1), get the next line edit in script and call grab_focus on it