You could connect to "textChanged()". If 3 digits were entered set the focus to the next QLineEdit.