Why do you need a QTextEdit if you want to allow only two characters?